fitbug/symfony-yaml-serializer-encoder-decoder
Adds YAML encoding/decoding support to Symfony’s Serializer component. Install via Composer and register YamlEncoder with YamlEncode/YamlDecode to serialize objects to/from YAML alongside your normalizers. Requires PHP 5.6+.
Adopt if:
Avoid if:
symfony/yaml, spatie/laravel-yaml, or php-yaml).symfony/yaml instead).symfony/yaml + symfony/serializer for long-term viability.For Executives: "This package allows us to standardize YAML handling across our PHP services using Symfony’s proven Serializer component, reducing technical debt and enabling non-technical teams to define configs or workflows in YAML. It’s a low-risk, MIT-licensed solution for legacy systems where we can’t upgrade to newer tools. While maintenance is minimal (last updated in 2016), it’s stable for our current needs and avoids reinventing the wheel. The tradeoff is a small dependency increase, but it aligns with our existing Symfony ecosystem and simplifies data exchange between microservices."
For Engineers:
*"If we’re constrained to PHP 5.6+ and need YAML serialization/deserialization, this package is a lightweight drop-in for Symfony’s Serializer. It’s not actively maintained, but it’s a thin wrapper around Symfony’s core YAML logic—so upgrading to symfony/yaml later would be straightforward. Ideal for:
symfony/yaml + symfony/serializer directly. For new projects, consider spatie/laravel-yaml or native PHP 8+ YAML support."*For Developers: *"Pros:
symfony/yaml directly."*How can I help you explore Laravel packages today?