farbcode/laravel-stateful-resources

A Laravel package for managing state in API resources.
3,490 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

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

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.


Made with ❤️ by //farbcode.

Related Packages

ebsp/resting

Typed REST resources, validation, and OpenAPI generation for Laravel.

9,508 3
baethon/laravel-resource

Conveniant factory for Laravel API resources

1,297 4
codemystify/laravel-types-generator

Simplified TypeScript types generator for Laravel applications with developer-de...

264 3
cyvelnet/laravel5-fractal

A simple fractal service provider and transformer generator with model attribute...

190,170 79
njasm/laravel5-soundcloud

Soundcloud API Service Provider For Laravel 5

43,778 15

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