New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

farbcode/laravel-stateful-resources

A Laravel package for managing state in API resources.
3,717 5
Install
composer require farbcode/laravel-stateful-resources
Latest Version:v1.0.0
PHP:^8.4
Laravel:12 · 13
License:MIT
Last Updated:Jul 21, 2026
Links: GitHub  ·  Packagist
Maintainer: farbcode

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.

Related Packages

railken/lara-eye
38,923 38
api
baethon/laravel-resource

Conveniant factory for Laravel API resources

1,297 4
juampi92/api-resources

Manage your resources maintaining API versioning

934,590 112
tailflow/laravel-orion

Orion for Laravel allows you to build a fully featured REST API based on your El...

814,907 1,591
unlu/laravel-api-query-builder

Laravel API Query Builder Package.

720,803 329

Version History

Version Released PHP Laravel License
v1.0.0 ^8.4 ^12.1||^13.0 MIT
v0.3.0 ^8.4 ^12.1 MIT
v0.2.0 ^8.4 ^12.1 MIT
v0.1.0 ^8.4 ^12.1 MIT