PHPackages                             devworkout/laravel-user-limits - 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. devworkout/laravel-user-limits

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

devworkout/laravel-user-limits
==============================

1.0.7(6y ago)075MITPHPPHP ^7.1

Since Apr 8Pushed 3y agoCompare

[ Source](https://github.com/devworkout/laravel-user-limits)[ Packagist](https://packagist.org/packages/devworkout/laravel-user-limits)[ Docs](https://github.com/devworkout/laravel-user-limits)[ RSS](/packages/devworkout-laravel-user-limits/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (9)Used By (0)

Laravel User Limits
===================

[](#laravel-user-limits)

This package abstracts and simplifies managing monthly service limits for users in your Laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require devworkout/laravel-user-limits
```

Add \\DevWorkout\\UserLimits\\Models\\HasLimits trait to User model:

```
    use HasLimits;
```

Add `limits:refresh` to your Console Kernel Schedule.

Usage
-----

[](#usage)

```
\DevWorkout\UserLimits\Limit::create([
    'subject' => 'domains',
    'allowed' => 3,
    'period' => 'permanent'
]);

\DevWorkout\UserLimits\Limit::create([
    'subject' => 'cards',
    'package' => 'pro',
    'allowed' => 100,
    'period' => 'monthly'
]);

echo auth()->user()->usage('cards')->allowed();
echo auth()->user()->usage('cards')->used();
echo auth()->user()->usage('cards')->remaining();

echo auth()->user()->usage('cards','pro')->exceeded();

echo auth()->user()->usage('cards')->reset();
echo auth()->user()->usage('cards')->increment();
echo auth()->user()->usage('domains')->decrement();

echo auth()->user()->usage('cards')->refreshed_at();
echo auth()->user()->usage('cards')->next_refresh_at();
```

### Testing

[](#testing)

```
composer test
```

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

[](#contributing)

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

### Security

[](#security)

If you discover any security related issues, please email us instead of using the issue tracker.

Credits
-------

[](#credits)

- [devworkout](https://github.com/devworkout)
- [All Contributors](../../contributors)

Support us
----------

[](#support-us)

Give us a star!

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Recently: every ~30 days

Total

8

Last Release

2517d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8dc28970580d50f2b4bb813e767ed7b0eefd6481037cd83ebc97ca63a7dae95b?d=identicon)[librevlad](/maintainers/librevlad)

---

Top Contributors

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

---

Tags

devworkoutlaravel-user-limits

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devworkout-laravel-user-limits/health.svg)

```
[![Health](https://phpackages.com/badges/devworkout-laravel-user-limits/health.svg)](https://phpackages.com/packages/devworkout-laravel-user-limits)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

591.7k1](/packages/crumbls-layup)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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