PHPackages                             czemu/laravel-simplestats - 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. czemu/laravel-simplestats

ActiveLibrary

czemu/laravel-simplestats
=========================

Simple statistics for Laravel.

1.1.0(7y ago)013MITPHPPHP ^7.1

Since Jun 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/czemu/laravel-simplestats)[ Packagist](https://packagist.org/packages/czemu/laravel-simplestats)[ RSS](/packages/czemu-laravel-simplestats/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Laravel Simplestats
===================

[](#laravel-simplestats)

Simple statistics package for Laravel inspired by [Simplestats for Kohana](https://github.com/creatoro/simplestats).

Requirements
------------

[](#requirements)

- PHP 7.1+
- Laravel 5.5+

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

[](#installation)

Install the package via composer:

```
composer require czemu/laravel-simplestats

```

If you're using Laravel &gt;= 5.5, the package will register itself automatically.

Publish the migrations:

```
php artisan vendor:publish --provider='Czemu\Simplestats\SimplestatsServiceProvider' --tag="migrations"

```

Run the migrations:

```
php artisan migrate

```

You can also publish the config file:

```
php artisan vendor:publish --provider='Czemu\Simplestats\SimplestatsServiceProvider' --tag="config"

```

Usage
-----

[](#usage)

Update or create statistics for an item named "file" with id "1":

```
Simplestats::update('file', 1);
```

Update or create unique statistics (based on cookie) for an item named "print" with id "2":

```
Simplestats::update('print', 2, TRUE);
```

Get statistics for an item named "page" with id "3":

```
Simplestats::get('page', 3);
```

Get statistics for an item named "download" with id "4" on specified date:

```
Simplestats::get('download', 4, '2018-05-20');
```

Get statistics for an item named "click" with id "5" between specified date range:

```
Simplestats::get('download', 5, ['2018-05-01', '2018-05-15']);
```

License
-------

[](#license)

The MIT License (MIT). Please see the [LICENSE.md](LICENSE.md) file for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~6 days

Total

3

Last Release

2889d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fa33f11160958dd07b8d73c6d72861e198f98050f2e6bea8664744cf1d25976?d=identicon)[czemu](/maintainers/czemu)

---

Top Contributors

[![czemu](https://avatars.githubusercontent.com/u/3218620?v=4)](https://github.com/czemu "czemu (5 commits)")

---

Tags

laravelstatsstatisticssimplestats

### Embed Badge

![Health badge](/badges/czemu-laravel-simplestats/health.svg)

```
[![Health](https://phpackages.com/badges/czemu-laravel-simplestats/health.svg)](https://phpackages.com/packages/czemu-laravel-simplestats)
```

###  Alternatives

[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[timothepearce/laravel-time-series

Laravel Time Series provides an API to create and maintain projected data from you Eloquent models, and represent them as time-series.

955.4k](/packages/timothepearce-laravel-time-series)[amendozaaguiar/filament-route-statistics

Filament route statictics viewer

3225.0k1](/packages/amendozaaguiar-filament-route-statistics)[still-code/laravel-umami

Umami API wrapper for laravel

362.5k](/packages/still-code-laravel-umami)

PHPackages © 2026

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