Skip to content

Commit

Permalink
Update index.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
rdorado committed Mar 19, 2019
1 parent 4416b2b commit 4dc72a0
Showing 1 changed file with 0 additions and 137 deletions.
137 changes: 0 additions & 137 deletions docs/index.rst
Expand Up @@ -4,140 +4,3 @@
intro
examples

=============
SiteAnalyzer
=============

SiteAnalyzer is a package to analyze PHP sites. With this package, it is possible to count pages, understand user behavior, analyze the interaction of the site, and perform A/B testings. SiteAnalyzer can be installed into any PHP in seconds without affecting the business logic of the application and customized according to the needs. SiteAnalyzer makes use of machine learning algorithms and statistics to analyze a site and create meaningful reports.

Features
--------

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

Installation
------------

SiteAnalyzer can be installed through [Composer](https://getcomposer.org):

```shell
$ composer require rdorado/site-analyzer
```


Or modify your composer.json requirements:

```json
"require": {
"rdorado/site-analyzer": "^0.0.1"
}
```
and update your project:

```shell
$ composer update
```

Usage
-----

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

```php
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:

```php
$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:

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

Main features
===========================================

Counting
**********************

The core functionality of SiteAnalyzer is to store counts. Every time the static method ```SiteAnalyzer::count();``` is called it stores the url associated

```php
use SiteAnalyzer\SiteAnalyzer;
SiteAnalyzer::count();
```

=============
Examples
=============



********************
Examples
********************

Example 1: time analysis
============================

Example 2: time analysis
============================
$data = SiteAnalyzer::getStats();
print( SiteAnalyzer::transform($data, "html") );

Example 3: user analysis
============================
$data = SiteAnalyzer::getStats();
print( SiteAnalyzer::transform($data, "html") );




Example 4: path analytics
============================
$data = SiteAnalyzer::getStats();
print( SiteAnalyzer::transform($data, "html") );

Example 5: a/b test
============================

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


Example 6: Profile Analyisis
============================
$data = SiteAnalyzer::getStats();
print( SiteAnalyzer::transform($data, "html") );


Example 7: User-Time profile
============================
$data = SiteAnalyzer::getStats();
print( SiteAnalyzer::transform($data, "html") );

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



0 comments on commit 4dc72a0

Please sign in to comment.