Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Usage Limiter Laravel Package

nabilhassen/laravel-usage-limiter

Track and enforce per-model usage limits in Laravel. Define plan-based limits with reset intervals, consume/unconsume on resource changes, check remaining allowance, generate usage reports, and auto-reset via scheduled Artisan command.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

The package integrates seamlessly into Laravel's ecosystem via service provider registration, Eloquent traits, and migrations. It leverages standard Laravel patterns (e.g., HasLimits trait, config-driven customization) making it architecturally sound for typical Laravel applications. Integration feasibility is high due to clear Composer-based installation and minimal setup steps, though the "0 dependents" metric and future-dated release (2025-03-12) raise questions about real-world adoption. Technical risks include unverified concurrency handling during simultaneous limit consumption (e.g., race conditions in high-traffic scenarios), potential database bottlenecks from frequent writes, and cache consistency issues in multi-server environments if not using a distributed cache like Redis. Key questions: How does the package handle atomic limit updates across distributed systems? What is the performance impact of high-frequency limit checks (e.g., 1000+ RPS)? Does the reset_frequency scheduler handle edge cases like server restarts during reset windows?

Integration Approach

The package fits well within Laravel 8+ stacks, especially for apps using Eloquent models and standard caching. Migration path is straightforward: add HasLimits trait to target models, configure limits via migrations, and integrate consumption logic into resource creation/deletion workflows. Compatibility is confirmed for Laravel 12.x (per v1.1.0 release), but requires careful validation if using non-standard database setups (e.g., non-MySQL) or custom cache stores. Sequencing should follow: (1) Install and publish config/migrations, (2) Configure reset schedules in Kernel.php, (3) Define limits via Artisan commands or code, (4)

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport