Skip to content
A ready-to-use site-analyzer for PHP projects
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
tests
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml
site-analyzer.ini

README.md

Site Analyzer

MIT License Scrutinizer Quality Score Build Status

SiteAnalyzer is a free package for analyzing PHP sites. With SiteAnalyzer, it is possible to count pages, understand user behavior, analyze site dynamic, and perform A/B testings. SiteAnalyzer can be installed into any PHP in seconds without affecting the bussiness logic of the application and customized according to the needs.

Features

  • Click counter
  • Site dynamics analysis
  • User profile analysis
  • A/B testing

Installation

SiteAnalyzer can be installed through Composer:

$ composer require rdorado/site-analyzer

Or modify your composer.json requirements:

    "require": {
        "rdorado/site-analyzer": "^0.1.1"
    }

and update your project:

$ composer update

Usage

Count all the views/pages you want to observe by importing the SiteAnalyzer class and then using the count static method:

use SiteAnalyzer\SiteAnalyzer;

SiteAnalyzer::count();

You can also include other options to be stored on the database. That depends on the kind of reportings or analyzis you want to perform:

$options = ['id' = $myid];
SiteAnalyzer::count($options);

Reporting/Displaying the stored information

Once you have started to count the page hits, different sort of reports can be displayed. For example, a very basic report is the number of hits per page stored on the database:

$data = SiteAnalyzer::getStats();
print( SiteAnalyzer::transform($data, "html") );

Documentation

Read the docs at https://site-analyzer.readthedocs.io/en/latest/.

You can’t perform that action at this time.