Download the PHP package roundly-consulting/lifecycle-for-laravel without Composer
On this page you can find all versions of the php package roundly-consulting/lifecycle-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roundly-consulting/lifecycle-for-laravel
More information about roundly-consulting/lifecycle-for-laravel
Files in roundly-consulting/lifecycle-for-laravel
Package lifecycle-for-laravel
Short Description Status lifecycles for Eloquent models: guarded named transitions, limits and quotas, expiry and scheduled transitions, rollbacks and an append-only history.
License MIT
Homepage https://roundly-consulting.com/open-source/docs/lifecycle-for-laravel
Informations about the package lifecycle-for-laravel
Lifecycle for Laravel
Status lifecycles for any Eloquent model — orders, tickets, listings, subscriptions. Named transitions behind one guard pipeline, race-free quotas, expiry and scheduled transitions, rollbacks and an append-only history.
Installation
Requires PHP 8.4, Laravel 13, and SQLite, PostgreSQL or MySQL/MariaDB.
If your models or users have UUID/ULID keys, set LIFECYCLE_KEY_TYPE /
LIFECYCLE_ACTOR_KEY_TYPE before migrating. States with a TTL need the sweep scheduled:
Schedule::command('lifecycle:sweep')->everyMinute();.
Usage
Define the lifecycle once (php artisan make:lifecycle ListingLifecycle generates the class):
Attach it to the model:
Then move it through its states:
Documentation
The full documentation — configuration, every feature and its API, and testing — lives on our website: roundly-consulting.com/open-source/docs/lifecycle-for-laravel
Release notes are in CHANGELOG.md. To contribute, see the contributing guide.
Support our work
This package is free and open source, built and maintained by Roundly Consulting. If it saves you time, please consider supporting our open-source work — a one-time donation, a monthly pledge on Patreon or a crypto donation helps fund maintenance, new features and new packages.
License
The MIT License (MIT). See LICENSE.md.
All versions of lifecycle-for-laravel with dependencies
illuminate/bus Version ^13.0
illuminate/cache Version ^13.0
illuminate/console Version ^13.0
illuminate/container Version ^13.0
illuminate/contracts Version ^13.0
illuminate/database Version ^13.0
illuminate/events Version ^13.0
illuminate/filesystem Version ^13.0
illuminate/http Version ^13.0
illuminate/queue Version ^13.0
illuminate/support Version ^13.0
illuminate/validation Version ^13.0
roundly-consulting/enums-for-laravel Version ^2.0
roundly-consulting/package-toolkit-for-laravel Version ^2.1