nabilhassen/laravel-usage-limiter
Track, limit, and restrict usage for users/accounts or any model in Laravel. Define per-plan limits with reset frequencies, consume/unconsume on create/delete, check remaining allowance, generate usage reports, and auto-reset via scheduled Artisan command.
The package now explicitly supports Laravel 13, aligning with the latest LTS release and reducing compatibility concerns for new projects. The architectural fit remains strong, leveraging Laravel’s service provider, Eloquent traits, and config-driven customization, but the Laravel 13 dependency may introduce minor breaking changes if relying on deprecated APIs (e.g., RouteServiceProvider or older cache drivers). Integration feasibility is unchanged, though the 0 dependents metric and 2025 release date still raise adoption uncertainty. Technical risks persist:
SETNX or database transactions) for atomic limit updates.tag:limit-reset) remain unverified for edge cases like server restarts.
Key questions:UPDATE ... WHERE with ON DUPLICATE KEY)?The package now explicitly targets Laravel 13, simplifying adoption for new projects but requiring validation for existing Laravel 12.x apps. The migration path remains:
composer require nabilhassen/laravel-usage-limiter:^2.0.0.php artisan vendor:publish).HasLimits to Eloquent models.LimitResetCommand in Kernel.php.
Compatibility:Cache::store() vs. Cache::tags()).Maintenance:
reset_frequency).How can I help you explore Laravel packages today?