New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mtvtd/laravel-stats

This is my package LaravelStats
3,314
Install
composer require mtvtd/laravel-stats
Latest Version:v2.4.0
PHP:^8.0
Laravel:9 – 13
Older releases:8
License:MIT
Last Updated:Nov 6, 2026
Links: GitHub  ·  Packagist
Maintainer: spaantje

This is my package LaravelStats

Latest Version on Packagist Tests Check & fix styling Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require mtvtd/laravel-stats

You can publish the config file with:

php artisan vendor:publish --provider="Mtvtd\LaravelStats\LaravelStatsServiceProvider" --tag="laravel-stats-config"

Add .env variables:

# status.mtvtd.nl
LARAVEL_STATS_TOKEN=[your-api-token]
LARAVEL_STATS_SCHEDULER_LOGGING_ENABLED=true

Add the update command to de deploy script:

php artisan mtvtd:laravel-stats

Packages

mtvtd:laravel-stats sends the packages in composer.json with their installed version, and every other installed package that comes along with them (read from vendor/composer/installed.json), with the composer.json packages that pull it in. status.mtvtd.nl checks all of them against the Packagist security advisories, the same source as composer audit.

The same goes for NPM: the packages in package.json with the version from package-lock.json, and every other package in the lockfile with the package.json packages that pull it in (lockfile v2 or v3, npm 7 and newer). status.mtvtd.nl checks those against the npm registry advisories, the same source as npm audit.

Backups

When the project uses spatie/laravel-backup (v8, v9 or v10), the package reports its backups to status.mtvtd.nl, whatever disk they are on (S3, Dropbox, local):

  • mtvtd:laravel-stats sends every backup destination with its newest backups (date and size).
  • After every backup:run, the result is sent right away, including the error when the backup failed. This goes through the queue, like the scheduler logging.

Nothing changes for projects without laravel-backup. To turn it off:

LARAVEL_STATS_BACKUP_REPORTING_ENABLED=false

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

spatie/laravel-stats

Track application stat changes over time

369,319 451
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

660,512,042 9,702
laravel/framework

The Laravel Framework.

617,629,957 34,997
laravel/tinker

Powerful REPL for the Laravel framework.

531,591,559 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

450,320,528 608

Version History

Version Released PHP Laravel License
v2.4.0 ^8.0 ^9.21|^10.30|^11.0|^12.0|^13.0 MIT
v2.3.0 ^8.0 ^9.21|^10.30|^11.0|^12.0|^13.0 MIT
v2.2.0 ^8.0 ^9.21|^10.30|^11.0|^12.0|^13.0 MIT
v2.1.1 ^8.0 ^9.21|^10.30|^11.0|^12.0|^13.0 MIT
v2.1.0 ^8.0 ^9.21|^10.30|^11.0|^12.0|^13.0 MIT