zjkiza/response-processor
A Laravel package for building and processing standardized API responses, helping you return consistent JSON structures with less boilerplate.
InjectDataAbstract lowers the cost of adding custom presenter/injection attributes, which is useful for teams standardizing response shaping across endpoints. DataFetcherInterface provides a useful seam between response attributes and underlying data retrieval.DataFetcherInterface implementations and the fetch signature. Any existing custom fetcher must be updated from fetch(array $identifiers): array to fetch(iterable $identifiers): array.iterable inputs are consistently supported as arrays and Traversable/generators.DataFetcherInterface services? Is iterable handled safely for arrays, generators, and lazy collections? What is the backward-compatibility policy before 1.0? Are there migration notes and tests covering both registration and fetch(iterable) behavior? How are fetcher errors, caching, and partial response failures handled?DataFetcherInterface implementations, update fetch signatures to accept iterable, update service registration per v0.7.0, and optionally simplify custom attributes by extending InjectDataAbstract.ProcessorAttributeInterface may still work but can be simplified by inheriting from InjectDataAbstract. Confirm Laravel/PHP constraints before rollout.Traversable identifier inputs; 5) pilot on a non-critical endpoint; 6) roll out after confirming no response regressions.iterable can enable lazy/generator-based identifier processing and lower memory pressure, but real scaling depends on fetcher implementation. Benchmark large identifier sets and downstream DB/API calls before broad adoption.How can I help you explore Laravel packages today?