PHPackages                             bartoszf/simple-analytics - 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. [Database &amp; ORM](/categories/database)
4. /
5. bartoszf/simple-analytics

ActiveLibrary[Database &amp; ORM](/categories/database)

bartoszf/simple-analytics
=========================

Laravel package for implementing simple analytics

v0.8.6(8y ago)139MITPHPPHP ^5.6 || ^7.0

Since Nov 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/BartoszF/SimpleAnalytics)[ Packagist](https://packagist.org/packages/bartoszf/simple-analytics)[ Docs](https://github.com/BartoszF/SimpleAnalytics)[ RSS](/packages/bartoszf-simple-analytics/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

BartoszF/SimpleAnalytics
========================

[](#bartoszfsimpleanalytics)

[![Laravel](https://camo.githubusercontent.com/751de52b1bee58113b5d1ffebf475031ed1c9771a0cf186203381d209c448b50/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d7e352e322d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](http://laravel.com)[![Source](https://camo.githubusercontent.com/1af5e908de779a9339be9d6ff3fde271cf02f7f063c57a6a15531e8673ba2dd8/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d426172746f737a462f53696d706c65416e616c79746963732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/BartoszF/SimpleAnalytics)[![License](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://tldrlegal.com/license/mit-license)

Laravel package for implementing simple analytics

Table of Contents
=================

[](#table-of-contents)

- [Requirements](#requirements)
- [Getting Started](#getting-started)
- [Contribution Guidelines](#contribution-guidelines)

Requirements
====================================================

[](#requirements)

- This package requires PHP 5.6+
- As for now, you need Auth facade with user.

Getting Started
==========================================================

[](#getting-started)

1. Require the package in your `composer.json` and update your dependency with `composer update`:

```
"require": {
...
"bartoszf/simple-analytics": "~0.8",
...
},

```

2. Add the package to your application service providers in `config/app.php`.

```
'providers' => [

Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
Illuminate\Auth\AuthServiceProvider::class,
...
BartoszF\SimpleAnalytics\AnalyticsServiceProvider::class,

],
```

3. Publish the package migrations to your application and run these with `php artisan migrate`.

```
$ php artisan vendor:publish --provider="BartoszF\SimpleAnalytics\AnalyticsServiceProvider"

```

4. Add the middleware to your `app/Http/Kernel.php`.

```
protected $routeMiddleware = [

....
'analytics' => BartoszF\SimpleAnalytics\Middleware\ReportUserRouteMiddleware::class,

];
```

5. Adjust view as you wish (probably extend it with your app layout)
6. Add `analytics` middleware to your routes from wich you want to get details.

Contribution Guidelines
==========================================================================

[](#contribution-guidelines)

Support follows PSR-2 PHP coding standards, and semantic versioning.

Please report any issue you find in the issues page. Pull requests are welcome.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

3115d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d8c085ab6101d4da55ffe0f35971b3c371275bdffce1b95ecca9bb2d967cc1c?d=identicon)[BartoszF](/maintainers/BartoszF)

---

Top Contributors

[![BartoszF](https://avatars.githubusercontent.com/u/9820463?v=4)](https://github.com/BartoszF "BartoszF (10 commits)")

---

Tags

laravelautheloquentanalytics

### Embed Badge

![Health badge](/badges/bartoszf-simple-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/bartoszf-simple-analytics/health.svg)](https://phpackages.com/packages/bartoszf-simple-analytics)
```

###  Alternatives

[kodeine/laravel-acl

Light-weight role-based permissions for Laravel 5 built in Auth system.

782354.8k5](/packages/kodeine-laravel-acl)[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40199.8k](/packages/cybercog-laravel-nova-ban)[sroutier/eloquent-ldap

A Laravel package that first tries to log the user against the internal database if that fails, it tries against the configured LDAP/AD server.

228.7k1](/packages/sroutier-eloquent-ldap)[phaza/single-table-inheritance

Single Table Inheritance Trait

1515.8k](/packages/phaza-single-table-inheritance)

PHPackages © 2026

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