ivory/serializer-bundle
Symfony bundle that adds serializer integration to your project, with service configuration and convenient APIs for converting PHP objects to and from JSON, XML, and other formats. Use it to centralize serialization setup and keep controllers free of format-specific code.
symfony/serializer encoders, spatie/laravel-data, and league/csv — not by this bundle.ivory/serializer logic under MIT attribution into app/Support/, or reimplement on maintained libraries. Either way it must never become a silent transitive dependency.Consider it (as a reference or spike input) when:
DocumentParser interface with per-format adapters — and want a proven mapping model to crib from. Reading this bundle and its underlying library is cheaper than inventing the schema ourselves.Look elsewhere when:
league/csv for CSV, native json_decode/JsonResource for JSON, symfony/serializer (already pulled transitively) with CsvEncoder/XmlEncoder/YamlEncoder, or spatie/laravel-data for typed hydration. These are maintained, Laravel-adjacent, and have a security response process.--ignore-platform-reqs, that is a stop signal, not a workaround. Expect conflicts on symfony/serializer, symfony/yaml, and PHP constraints.symfony/validator, Form Requests, or DTO validation; this package won't do it for you.Executives: A small, MIT-licensed Symfony bundle that turns uploaded CSV/JSON/XML/YAML into typed objects. It is cheap to evaluate and cheap to fork, but it is archived, has effectively zero community (4 stars, 0 dependents), will never receive a security patch, and cannot run in our Laravel application — its entire value-add is Symfony container wiring we don't have. Recommendation: use it as a one-day design reference to validate our import architecture, then build on maintained Laravel libraries (league/csv, symfony/serializer encoders, spatie/laravel-data) before anything ships to customers. Do not adopt it as a production dependency.
Engineering: A thin bundle over ivory/serializer that maps declarative type/attribute config onto Symfony's Serializer deserialization pipeline, covering CSV, JSON, XML, and YAML. De-serialization only. In Laravel the bundle is inert — the reusable asset is the underlying library and the mapping model, not the package. The maintained equivalent is symfony/serializer plus CsvEncoder/XmlEncoder/YamlEncoder (transitively available to us) or spatie/laravel-data for typed hydration, both of which we can wrap in a single internal DocumentParser contract in about a day. Expect Composer conflicts on Symfony/PHP constraints; if resolution needs --ignore-platform-reqs, stop. If a specific parser behavior proves valuable, vendor the relevant code into app/Support/ under MIT attribution — no Composer dependency, no upstream coupling. Treat the archived status and the Symfony-only integration as the deciding constraints, not the feature list.
Bottom line: Low opportunity score (25.51) and an overall score of 0.135 reflect reality — this is a reference implementation and prototyping accelerator, not a foundation, and it is the wrong runtime for a Laravel product. Go for a design spike; no-go for production.
How can I help you explore Laravel packages today?