PHPackages                             infinityxtech/laravel-page-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. infinityxtech/laravel-page-statistics

Abandoned → [zpm-packages/laravel-page-statistics](/?search=zpm-packages%2Flaravel-page-statistics)Library[Utility &amp; Helpers](/categories/utility)

infinityxtech/laravel-page-statistics
=====================================

Simple package for collection visited page statistic.

v1.0.2(4w ago)08MITPHPPHP ^8.3CI passing

Since Jul 20Pushed 4w ago1 watchersCompare

[ Source](https://github.com/zpm-packages/laravel-page-statistics)[ Packagist](https://packagist.org/packages/infinityxtech/laravel-page-statistics)[ Docs](https://github.com/zpm-packages/laravel-page-statistics)[ GitHub Sponsors](https://github.com/InfinityXTech)[ RSS](/packages/infinityxtech-laravel-page-statistics/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (3)Dependencies (22)Versions (4)Used By (0)

This is my package laravel-page-statistics
==========================================

[](#this-is-my-package-laravel-page-statistics)

[![Latest Version on Packagist](https://camo.githubusercontent.com/be3dfb65368d1d9572eb631af569abeb093c7944b1d11833295a033dfaa47e62/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a706d2d7061636b616765732f6c61726176656c2d706167652d737461746973746963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zpm-packages/laravel-page-statistics)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ae34b07e492fde3187b9e8d435a2dc248b46180ad18e8f2338c849fa916adc95/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a706d2d7061636b616765732f6c61726176656c2d706167652d737461746973746963732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/zpm-packages/laravel-page-statistics/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8e16fc6036ca53acdabb721875b3a91259aaf77d5a89adce25a08bafc37778ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a706d2d7061636b616765732f6c61726176656c2d706167652d737461746973746963732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/zpm-packages/laravel-page-statistics/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/72496851b9f01efbed40465f37b0537f7fe3de774c79dea377df152eea09c375/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a706d2d7061636b616765732f6c61726176656c2d706167652d737461746973746963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zpm-packages/laravel-page-statistics)

Simple package for collection visited page statistic.

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

[](#installation)

You can install the package via composer:

```
composer require zpm-packages/laravel-page-statistics
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="page-statistics-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="page-statistics-config"
```

This is the contents of the published config file:

```
return [
    'geoip_db_path' => null
];
```

In case you need to update config of packages used here, check docs for:

- [cyrildewit/eloquent-viewable](https://github.com/cyrildewit/eloquent-viewable)
- [geoip2/geoip2](https://github.com/maxmind/GeoIP2-php)
- [matomo/device-detector](https://github.com/matomo-org/device-detector)

Usage
-----

[](#usage)

First it is same as for eloquent-viewable you need to add these to your model:

```
use Illuminate\Database\Eloquent\Model;
use CyrildeWit\EloquentViewable\InteractsWithViews;
use CyrildeWit\EloquentViewable\Contracts\Viewable;

class Post extends Model implements Viewable
{
    use InteractsWithViews;

    // ...
}
```

Then, you can use this code to save stats to database:

```
// Route model binding example

Route::get('/post/{slug}', function (Post $post) {

    $pageStatistics = new ZPMPackages\PageStatistics();

    $view = $pageStatistics->record($post);

});
```

There is also a method to get details that are stored.

```
    $pageStatistics = new ZPMPackages\PageStatistics();

    $details = $pageStatistics->getDetails();

    // do whatever with $details

    $view = $pageStatistics->record($post, $details);
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [ZPMPackages](https://github.com/zpm-packages)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance94

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

29d ago

PHP version history (2 changes)v1.0.0PHP ^8.4

v1.0.2PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/211412089?v=4)[ZPM Labs](/maintainers/zpmlabs)[@ZPMLabs](https://github.com/ZPMLabs)

---

Top Contributors

[![sasaorasanin](https://avatars.githubusercontent.com/u/100382372?v=4)](https://github.com/sasaorasanin "sasaorasanin (2 commits)")

---

Tags

laravellaravel-page-statisticsZPMPackages

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/infinityxtech-laravel-page-statistics/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329575.9k35](/packages/codewithdennis-filament-select-tree)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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