Overview

Here you will find all the documentation needed in order to fully configure, install and use phpStatistics's Product.

Thank you for purchasing the product and if you haven't yet, check out the demo and the product's page below :)

Buy & Download phpStatistics

Requirements

Please make sure your server meets the following requirements before attempting to install or purchase the product.

PHP Version The script was made with the latest technology of php 7, therefore it is necesarry to have PHP 7+ installed on your server.
cURL PHP cURL extension is required in order for the script to get the required data from the sources.
MYSQLi The script was built to function with PHP MySQLi, so it is a required extension to have.
OpenSSL PHP OpenSSL extension must be installed and enabled. This is a required extension for secure data encryption for PayPal, Stripe, Twitter..etc API's
.htaccess PHP Rewrite Module must be installed and activated on the Apcache server.

How to install

The installation process is straight forward and if done properly, it will take you less than 3 minutes to get it up and running.

1. Upload the files

Upload the script folder content to the folder responsible for websites in your webhost ( ex: public_html, www ). This can be installed either as domain.com, sub.domain.com or domain.com/folder. It will work either way :)

2. Configure database connection & url

Find the core/config/config.php file and edit it with a text editor and add your database connection details.

Edit the url variable and add your proper website installation url (ex: https://domain.com/ ). Make sure it has a slash at the end!

3. Import the database

Import the dump.sql to your database which you've configured in the step above. You can do this with phpMyAdmin if installed.

4. Login

You can now log into your account with Username: Admin and Password: admin

Make sure..

Make sure you uploaded the .htaccess file. They may appear hidden on your pc and if not uploaded, it will produce a 404 Error on any link you click in the website.

5. Cron Setup (optional)

This step is optional and it should be done only if you want your accounts from the website to be checked automatically each day. The cronjob should be set at 1 minute for the best results. If you can't set it once a minute, then you can go with the lowest your webhost allows you to ( Keep in mind that this will lower the number of accounts the script will be able to query per day).

Example: If the CronJob is running Once every minute with a settings of 2 accounts per cron run then you will be able to query about 2880 accounts per day.

The CronJob url is going to be https://yourwebsite.com/cron.php ( make sure to replace "yourwebsite.com" with your actual website installation )

Your commands should looks something like this

* * * * * wget --quiet -O /dev/null https://yourwebsite.com/cron.php
or
* * * * * wget --spider -O - https://yourwebsite.com/cron.php >/dev/null 2>&1

or you can do it with curl also

* * * * * curl --silent https://yourwebsite.com/cron.php

Nginx Support

The script was designed to work by default for Apache servers. This is an extra thing that I provide for NGINX users although support is NOT guaranteed for NGINX servers.

The rewrite rule for NGINX that you need to add so that the urls work is the following:

rewrite ^\/(.+)$ /index.php?page=$1 last;

This command should be added in your domain.conf nginx file in the location / { ... } field

Installation Services

I also offer installation services at a low cost.

- Script Installation ( $15 )

This service is striclty related to the script full installation and does not include fixes or installations if your server is not compatible.

- Full Server Installation ($ 75 )

The full server installation package includes the following: (only available for DigitalOcean servers)

  • Creation of a new Droplet on DigitalOcean
  • Setting up the domain with for the server
  • Free SSL Certificate Installation ( Let's Encrypt )
  • Installation of Apache, MySQL with MySQLi, PHP
  • Installation and configuration of PHP's necesarry modules / extensions
  • Full installation of the phpStatistics script

Contact Us

Services Integrations

This product uses different services and api integrations to provide a better functionality of the app and extra features. Find more details below :)

Google Analytics

You can add your Google Analytics Track Id to the admin panel by simply accessing the Website Settings page in the admin panel and clicking on the API's tab.

A valid example of Google Analytics Track Id is UA-22222222-33

Google Recaptcha

You can add your Google Recaptcha Keys to the admin panel by simply accessing the Website Settings page in the admin panel and clicking on the API's tab.

Tip: Make sure you enable Google Recaptcha by ticking the checkbox in the admin panel.

Facebook Login API

You can add your Facebook App Keys to the admin panel by simply accessing the Website Settings page in the admin panel and clicking on the API's tab.

  • Make sure your Facebook App has the Facebook Login product enabled.
  • Make sure your Facebook Login product has the "Valid OAuth Redirect URIs" to as in the following example: https://yourdomain.com/login/facebook. Double check to make sure it is the same format as your website url.

  • Useful link: Facebook Developer Console

    Instagram Login API

    You can add your Instagram App Keys to the admin panel by simply accessing the Website Settings page in the admin panel and clicking on the API's tab.

  • Make sure to set your new instgram app's "Valid OAuth Redirect URIs" to the following format: https://yourdomain.com/login/instagram
  • Make sure yourwebsite.com with your actual website link.

  • Useful link: Instagram Developers

    PayPal

    With a built-in functionality, phpStatistics offers you the functionality to charge your users for premium packages on the website. You only need to provide the API Keys and you are good to go :)


    1. Access PayPal Developer Console
    2. Login into your account with your regular paypal login credentials
    3. Click Dashboard link on the top right
    4. Scroll down to the REST API apps section and click Create App button.
    5. Include any name for your App and click Create App button
    6. On the next page switch to Live mode and copy your Client ID and Client Secret.
    7. Paste them into the Website Settings page in the admin panel and clicking on the API's tab.

    Make sure..

    Make sure that you're able to accept payments with your PayPal account and also, you must have a verified Business or Premier PayPal Account.

    Stripe

    1. Login into your Stripe Account at Stripe.com
    2. Access Stripe API Keys
    3. Copy the Publishable key and Secret key
    4. Paste them into the Website Settings page in the admin panel and clicking on the API's tab.
    5. Make sure your API keys are set to Live Mode so that you can accept real payments.

    Make sure..

    Make sure that you're able to accept payments with your PayPal account and also, you must have a verified Business or Premier PayPal Account.

    Twitter

    You need to include Twitter API Keys in order for the script to fully work. If the Twitter Keys are not provided, statistics for Twitter accounts are disabled.


    1. Access Twitter Apps Console
    2. Make sure you are logged in
    3. Click on the Create new app button and register your twitter app.
    4. Access your newly created app and click on the Keys and Access Tokens Tab
    5. Copy the 4 Keys that are required in the admin panel
    6. Paste them into the Website Settings page in the admin panel and clicking on the Twitter tab.

    Twitch

    You need to include Twitch API Keys in order for the script to fully work. If the Twitch Keys are not provided, statistics for Twitch accounts are disabled.


    1. Access Twitch Developer Center after you make sure you are logged in.
    2. Click on the Create Application button and register your app with any name you want.
    3. After successfully creating the Twitch App, make sure you Copy the Client Id key.
    4. Paste it into the Website Settings page in the admin panel and clicking on the Twitch tab.

    YouTube

    You need to include YouTube API Keys in order for the script to fully work. If the YouTube Keys are not provided, statistics for YouTube accounts are disabled.


    1. Access Google Developers Console
    2. Login into your account with your regular Google login credentials
    3. Make sure you create a project
    4. Make sure that newly created project has enabled the YouTube Data v3 Api
    5. Access the Credentials Tab from the sidebar
    6. Click on the Create Credentials button and select API Key
    7. Copy the newly created API Key
    8. Paste them into the Website Settings page in the admin panel and clicking on the API's tab.

    Tumblr

    You need to include Tumblr API Keys in order for the script to fully work. If the Tumblr Keys are not provided, statistics for YouTube accounts are disabled.


    1. Access Tumblr Oauth Apps Dashboard
    2. Create you application, you only need to insert the required data
    3. After you create the application, you will be able to see the API Keys
    4. Copy the Consumer and the Secret keys
    5. Paste them into the Website Settings page in the admin panel and clicking on the API's tab.

    Hosting Recommendation

    I always recommend DigitalOcean because of their flexibility from every point of view. DigitalOcean offers you best priced VPS's for cheap ($5 minimum). I've been using this webhost for over 3 years and I never had a problem and never had the necessity to contact their support team.

    If you use my referral code, you will get $10 in credit to use for your droplets ( basically 2 free months )


    Get $10 on Digital Ocean

    FAQ's

    Q: How can I update the text on the website?
    A: Most of the strings ( text ) from the website can be changed from the languages/english.json file, except some Standard Admin Panel Text.
    Q: How can I create my own language pack?
    A: Simple, just copy and paste the languages/english.json file, rename the english.json file to your actual language name and start editing the newly created file.
    Q: How can I remove / change the footer?
    A: You can remove the footer text or change it by editing the template/includes/footer.php file.

    About

    I build awesome projects ready to use :)