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
composer install
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
vendor/bin/phpspec run
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
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.