psx/data
psx/data provides a lightweight model and data-processing layer for PHP: records, collections, readers and writers that map data from HTTP, SQL, files and arrays into typed objects, with validation, filtering, hydration and transformation built in.
Consider it when:
Look elsewhere when:
json_encode/json_decode plus typed DTOs or spatie/laravel-data will be simpler, faster to onboard, and better documented.To executives: This is a small, low-adoption PHP library for converting data between formats and objects. I do not recommend adopting it for core product work — it carries single-maintainer and abandonment risk with no ecosystem validation. I'm flagging it as a design reference: it shows the "define a model once, emit JSON/XML/RSS" pattern, which is worth having in our architecture, but we should satisfy that need with our existing, better-supported serializer. Net recommendation: no new spend, no dependency; keep the pattern, skip the package.
To engineering: psx/data maps POPOs to and from multiple formats through a shared definition — conceptually the same job as Symfony Serializer or JMS, with a lighter footprint and tighter coupling to the PSX framework. We are not adopting it: 4 stars, 0 dependents, and one maintainer mean we'd own the code in practice. Worth 30 minutes of one engineer's time purely as a comparison point if we're revisiting our serialization standard; otherwise, stay on the Symfony Serializer and native Laravel tooling we already ship and support.
How can I help you explore Laravel packages today?