konsulting/laravel-transformer
A Laravel package for transforming data structures and API responses through dedicated transformer classes. It helps keep controllers and models clean by centralizing reusable transformation logic, making it easy to shape arrays, Eloquent models, and collections into consistent output for JSON respo...
Laravel Transformer adds a dedicated layer for converting Eloquent models and other data into clean, consistent arrays or JSON. Rather than scattering toArray() overrides or ad-hoc formatting through controllers, you define a transformer that explicitly maps attributes, relationships and computed values—keeping API responses predictable and easy to evolve.
How can I help you explore Laravel packages today?