PHPackages                             rdorado/site-analyzer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. rdorado/site-analyzer

ActiveLibrary[Testing &amp; Quality](/categories/testing)

rdorado/site-analyzer
=====================

Analyze a php-based website with minimum configuration. Features include: hit counter, user analysis, ab tests, and user profiling.

0.1.1(7y ago)111MITPHPPHP &gt;=5.3.0

Since Nov 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/rdorado/site-analyzer)[ Packagist](https://packagist.org/packages/rdorado/site-analyzer)[ Docs](https://github.com/rdorado/site-analyzer)[ RSS](/packages/rdorado-site-analyzer/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Site Analyzer
=============

[](#site-analyzer)

[![MIT License](https://camo.githubusercontent.com/d1de6020626093bca522e62b5033b92a10b0e33aed9efe13fbb9250147e5c6dd/68747470733a2f2f62616467656e2e6e65742f62616467652f6c6963656e73652f4d49542f)](http://opensource.org/licenses/MIT)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/5a9621e067db0869ac9144e658a8d9232726b25555d63d099f0a9af17ffa76fb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72646f7261646f2f736974652d616e616c797a65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rdorado/site-analyzer/)[![Build Status](https://camo.githubusercontent.com/6279f8916101a23d7f04edb9b83f91e06b449c86c35e95c89813083f885564be/68747470733a2f2f7472617669732d63692e636f6d2f72646f7261646f2f736974652d616e616c797a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/rdorado/site-analyzer)

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
--------

[](#features)

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

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

[](#installation)

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

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

[](#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
===========================================

[](#reportingdisplaying-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
=============

[](#documentation)

Read the docs at .

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~54 days

Total

3

Last Release

2614d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58096b178de9c9ef3a4940b1d1a2019224ea8bd2e2d127fc02c80b181fe9b67d?d=identicon)[rdorado](/maintainers/rdorado)

---

Top Contributors

[![rdorado](https://avatars.githubusercontent.com/u/632386?v=4)](https://github.com/rdorado "rdorado (264 commits)")

---

Tags

testab testhit countersite statistics

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rdorado-site-analyzer/health.svg)

```
[![Health](https://phpackages.com/badges/rdorado-site-analyzer/health.svg)](https://phpackages.com/packages/rdorado-site-analyzer)
```

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[hamcrest/hamcrest-php

This is the PHP port of Hamcrest Matchers

7.1k484.1M109](/packages/hamcrest-hamcrest-php)[nelmio/alice

Expressive fixtures generator

2.5k43.4M133](/packages/nelmio-alice)[zenstruck/foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.

78311.9M97](/packages/zenstruck-foundry)[php-mock/php-mock

PHP-Mock can mock built-in PHP functions (e.g. time()). PHP-Mock relies on PHP's namespace fallback policy. No further extension is needed.

36918.1M98](/packages/php-mock-php-mock)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

33412.5M350](/packages/brain-monkey)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
