PHPackages                             davin-bao/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. davin-bao/statistics

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

davin-bao/statistics
====================

this is a statistics package for laravel

022[1 issues](https://github.com/davin-bao/statistics/issues)HTML

Since Aug 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/davin-bao/statistics)[ Packagist](https://packagist.org/packages/davin-bao/statistics)[ RSS](/packages/davin-bao-statistics/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Statistics (Laravel4 Package)
=============================

[](#statistics-laravel4-package)

Statistics package provides a simple way to custom any statistics to **Laravel4**.

Quick start
-----------

[](#quick-start)

### Required setup

[](#required-setup)

In the `require` key of `composer.json` file add the following

```
"davin-bao/statistics": "dev-master"

```

Run the Composer update comand

```
$ composer update

```

In your `config/app.php` add `'DavinBao\Statistics\StatisticsServiceProvider','` to the end of the `$providers` array

```
'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'DavinBao\Statistics\StatisticsServiceProvider',

),
```

At the end of `config/app.php` add `'Statistics'       => 'DavinBao\Statistics\StatisticsFacade'` to the `$aliases` array

```
'aliases' => array(

    'App'        => 'Illuminate\Support\Facades\App',
    'Artisan'    => 'Illuminate\Support\Facades\Artisan',
    ...
    'Statistics'       => 'DavinBao\Statistics\StatisticsFacade',

),
```

### Configuration

[](#configuration)

### Create Table

[](#create-table)

Now generate the statistics migration

```
$ php artisan statistics:migration

```

It will generate the `_statistics_setup_tables.php` migration. You may now run it with the artisan migrate command:

```
$ php artisan migrate

```

After the migration, statistics tables will be present.

### Create Controllers &amp; Views

[](#create-controllers--views)

```
$ php artisan statistics:views

```

### Create Routes

[](#create-routes)

```
$ php artisan statistics:routes

```

### Using

[](#using)

Go to /admin/statistics, you can change the style or add others functions

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d4bcfd83f5b742d5aeddbc12fdcd74806a7b79d770b613a707fe49bc74cd3d9?d=identicon)[davin-bao](/maintainers/davin-bao)

---

Top Contributors

[![davin-bao](https://avatars.githubusercontent.com/u/5162830?v=4)](https://github.com/davin-bao "davin-bao (8 commits)")

### Embed Badge

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

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

###  Alternatives

[popo/generator

Plain Old PHP Object (POPO) / Data Structure / Data Transfer Object (DTO) Generator. Convert YAML schema to PHP class.

2140.4k9](/packages/popo-generator)[aktuba/php-puppeteer

Extend puphpeteer

182.5k](/packages/aktuba-php-puppeteer)[lukaskleinschmidt/kirby-snippet-controller

Kirby Snippet Controller

192.1k](/packages/lukaskleinschmidt-kirby-snippet-controller)

PHPackages © 2026

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