saritasa/transformers
Saritasa Transformers is a Laravel package for turning models and data structures into consistent arrays or JSON using reusable transformer classes. It keeps API output, nested relationships, and custom formatting organized and easy to maintain.
v1 representation while the underlying model and business logic evolve. Directly supports whether v2 is a rewrite or a parallel set of transformers.laravel-fractal (maintained Fractal integration), or hand-rolled transformers (full control, no supply-chain surface).Consider it only as reference material or a fork source, not as a runtime dependency. The signals are decisive: archived, 1 star, 0 dependents, last release August 2024, and a low opportunity score. Archival means no upstream fixes, no Laravel major-version compatibility work, and no CVE response — every future upgrade cost lands on your team.
Reasonable cases to open the repo:
Look elsewhere when:
laravel-fractal has real adoption and active maintenance.To executives: The idea is sound and the implementation is not the asset. This package is a thin, archived wrapper around an established open-source serialization library, with effectively zero adoption. Adopting it as a dependency would introduce unmaintained code into our stack in exchange for saving perhaps a few days of setup. Recommendation: adopt the pattern — a dedicated transformation layer between our data models and our API responses — using framework-native tooling we already support. That gets us the same contract stability and API-versioning benefits with no new supply-chain risk and no orphaned dependency to carry through the next Laravel upgrade.
To engineering: Treat this repo as a design reference, not a dependency. If we want a transformation layer, we get it from Laravel API Resources at no incremental cost. If the team has a specific reason to prefer Fractal's serializer model, use the maintained laravel-fractal integration instead. The one thing worth extracting from this package is its conventions for transformer resolution — read it, agree on ours, write it down. Net effect: same architectural outcome, fewer dependencies, clear ownership, and an upgrade path that survives the next framework major version.
How can I help you explore Laravel packages today?