rdorado/site-analyzer
Composer 安装命令:
composer require rdorado/site-analyzer
包简介
Analyze a php-based website with minimum configuration. Features include: hit counter, user analysis, ab tests, and user profiling.
README 文档
README
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/.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-22