farbcode/laravel-stateful-resources

A Laravel package for managing state in API resources.

v0.3.0 2025-08-05 06:46 UTC

README

Laravel Stateful Resources

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.

β†’ Read the Docs

Changelog

Notable changes to this package are documented in our changelog for every new release.

β†’ See what's changed

Contributing

We welcome contributions to this package.

β†’ Read our Contribution Guidelines

β†’ Open an Issue

β†’ Submit a Pull Request

License

The MIT License (MIT). See License File for more information.

farbcode Logo

Made with ❀️ by //farbcode.