farbcode / laravel-stateful-resources
A Laravel package for managing state in API resources.
v0.3.0
2025-08-05 06:46 UTC
Requires
- php: ^8.4
- illuminate/contracts: ^12.1
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.3||^2.0
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
This package is not auto-updated.
Last update: 2025-09-16 07:54:36 UTC
README
Laravel Stateful Resources
A Laravel package for managing state in API resources.
Features
- π§π»ββοΈ Unified Resources: Provide multiple resource representations through a single resource class.
- ποΈ Built-in States: Comes with default states for common use cases.
- πͺ Magic Methods: Optional magic methods for a more fluent and expressive syntax.
- π οΈ Hackable: Extend the package with your own custom states and logic.
Documentation
All information on how to use this package can be found on our official documentation website.
Changelog
Notable changes to this package are documented in our changelog for every new release.
Contributing
We welcome contributions to this package.
β Read our Contribution Guidelines
License
The MIT License (MIT). See License File for more information.

Made with β€οΈ by //farbcode.