PHPackages                             ads/statistics - 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. ads/statistics

ActiveLibrary

ads/statistics
==============

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

3.0.17(1y ago)35.8k2GPL-3.0-or-laterPHPPHP ^7.3|^8.0|^8.1|^8.2|^8.3|^8.4

Since Jun 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/scs-ben/ads-statistics)[ Packagist](https://packagist.org/packages/ads/statistics)[ RSS](/packages/ads-statistics/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (45)Used By (0)

ads-statistics
==============

[](#ads-statistics)

### Audit/Error Logging Module for Laravel

[](#auditerror-logging-module-for-laravel)

The module will track the page view history for all users of the associated website. The module will log 500 error statistics to help with debugging code. Additionaly, the posted data for form submission will be saved in the database. The settings file has an array option that allows you to remove sensitive files from being saved in the tracking table.

Once configired, this plugin will automatically save page viewing history to the database.

*(Make sure to run "php artisan migrate" if updating)*

Step 1:

Set up composer, add the package to your require tag:

```
composer require ads/statistics

```

Step 2:

Publish and run migrations:

```
php artisan vendor:publish --provider=Ads\\Statistics\\StatisticsServiceProvider
php artisan migrate

```

Step 3:

Add Statistic logging to 'web' middleware in `app\Http\Kernel.php`:

```
    protected $middlewareGroups = [
        'web' => [
            ...
            \Ads\Statistics\Statistic::class,
        ],

```

Step 4:

In order to log 500 errors, you'll need to add some code to the app/Exceptions/Handler.php Add this interceptor to the register function Add to or create the *report* function before the return:

```
public function register()
{
	$this->reportable(function (Throwable $e) {
	    //
	});

	$this->reportable(function (\Exception $e) {
	    \Statistic::error($e);
	});
}

```

*\* Step 5 is only necessary if you have user authentication*

Step 5:

Edit the ***config/statistics.php*** file.

Please enter the column names from your user database table.

For example:

```
  'user_id' => 'email',
  'first_name' => 'first_name',
  'last_name' => 'last_name',
  'protected_fields' => ['password'],

```

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance46

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity93

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.4% 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 ~83 days

Recently: every ~183 days

Total

44

Last Release

406d ago

Major Versions

1.0.2 → 2.1.62018-06-25

2.1.8 → 3.0.02019-09-09

2.1.9 → 3.0.32019-11-14

2.1.10 → 3.0.42020-02-26

v2.x-dev → 3.0.92022-02-08

PHP version history (7 changes)1.0.1PHP &gt;=5.4.0

3.0.0PHP ^7.2

3.0.5PHP ^7.2.5

3.0.7PHP ^7.3|^8.0

3.0.14PHP ^7.3|^8.0|^8.1|^8.2

3.0.15PHP ^7.3|^8.0|^8.1|^8.2|^8.3

3.0.17PHP ^7.3|^8.0|^8.1|^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/cab305a840c7a7b864ec07b39d88f1e8975c29fbd2865dcb398cad0b21b3a0ef?d=identicon)[scs-ben](/maintainers/scs-ben)

---

Top Contributors

[![scs-ben](https://avatars.githubusercontent.com/u/2318300?v=4)](https://github.com/scs-ben "scs-ben (37 commits)")[![Dylan-DPC](https://avatars.githubusercontent.com/u/99973273?v=4)](https://github.com/Dylan-DPC "Dylan-DPC (1 commits)")

---

Tags

audit-loglaravellaravel6laravel7laravel8phpphp8laraveladministrative site usage statisticsadditional error debugging

### Embed Badge

![Health badge](/badges/ads-statistics/health.svg)

```
[![Health](https://phpackages.com/badges/ads-statistics/health.svg)](https://phpackages.com/packages/ads-statistics)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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