PHPackages                             tadasei/laravel-statuses - 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. tadasei/laravel-statuses

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

tadasei/laravel-statuses
========================

A package that provides stubs for managing status associations with models

v2.1.1(2mo ago)123MITPHPPHP ^8.1.0

Since Aug 10Pushed 2mo agoCompare

[ Source](https://github.com/Tadasei/laravel-statuses)[ Packagist](https://packagist.org/packages/tadasei/laravel-statuses)[ RSS](/packages/tadasei-laravel-statuses/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (14)Versions (6)Used By (0)

Tadasei/laravel-statuses
========================

[](#tadaseilaravel-statuses)

This package provides stubs for statuses association to Eloquent models.

Features
--------

[](#features)

- Quickly generate statuses handling utilities.
- Customize and extend generated code to fit your project's needs.
- Improve development efficiency by eliminating repetitive tasks.

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

[](#installation)

You can install the package via Composer by running:

```
composer require tadasei/laravel-statuses --dev
```

### Publishing statuses handling utilities

[](#publishing-statuses-handling-utilities)

To publish statuses handling utilities, use the following command:

```
php artisan statuses:install
```

### Configuring Statusable Models

[](#configuring-statusable-models)

To extend or define which models are considered *statusable*:

- Define a One-to-Many relationship with your model (one `App\Models\Status` has many `App\Models\YourModel`).
- Add your model class name to the `App\Enums\StatusableType` enum.

This allows full flexibility in defining how your application links statuses to models.

### Running migrations

[](#running-migrations)

To create the related `statuses` table, run the generated migration using the following command:

```
php artisan migrate
```

### Register CRUD routes

[](#register-crud-routes)

This package generates a `routes/resources/status.php` route file among its utilities. You can include this file in your `routes/web.php` or `routes/api.php` to enable authenticated and authorized `App\Models\Status` model CRUD operations.

```
// in routes/api.php or routes/web.php
require __DIR__ . "/resources/status.php";
```

Usage:
------

[](#usage)

The usage is the same as any regular One-to-Many relationship:

```
use App\Models\{Status, User};

$status = Status::create([
    "statusable_type" => User::class,
    "name" => "Initial status",
    "color" => "#858662",
    "is_initial" => true,
    "is_final" => false,
]);

$user = User::first();

$status->users()->save($user);
```

Customization
-------------

[](#customization)

The generated code serves as a starting point. You can customize and extend it according to your project's requirements. Modify the generated utilities as needed.

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

[](#contributing)

Contributions are welcome! If you have suggestions, bug reports, or feature requests, please open an issue on the GitHub repository.

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](LICENSE).

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance87

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Total

5

Last Release

63d ago

Major Versions

v1.1.0 → v2.0.02025-09-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f56b423b676a1de482a2c09129ce3bfd92a62fdad2dedbed6d9837c3fe7f81d?d=identicon)[Tadasei](/maintainers/Tadasei)

---

Top Contributors

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

---

Tags

laravelstubsbackendstatus

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tadasei-laravel-statuses/health.svg)

```
[![Health](https://phpackages.com/badges/tadasei-laravel-statuses/health.svg)](https://phpackages.com/packages/tadasei-laravel-statuses)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M203](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)

PHPackages © 2026

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