A encoder and decoder for Yaml for the Symfony Serializer Component.
This package is a Yaml Encoder and Decoder for the Symfony Serializer component.
You'll need to install:
- PHP (Minimum 5.6)
composer require fitbug/symfony-yaml-serializer-encoder-decoder
$encoders = [new YamlEncoder(new YamlEncode(), new YamlDecode())]; $normalizers = NormalizerFactory::create(); $serializer = new Serializer($normalizers, $encoders);
See the Symfony Serializer component.
First checkout the library, then run
We follow PSR2, and also enforce PHPDocs on all functions. To run the tests for coding style violations
vendor/bin/phpcs -p --standard=psr2 src/
We use PHPSpec for unit tests. To run the unit tests
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
See the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.