Symfony Yaml Serializer Encoder/Decoder
, (*1)
This package is a Yaml Encoder and Decoder for the Symfony Serializer
component., (*2)
Getting Started
Prerequisities
You'll need to install:, (*3)
Installing
composer require fitbug/symfony-yaml-serializer-encoder-decoder
Usage
$encoders = [new YamlEncoder(new YamlEncode(), new YamlDecode())];
$normalizers = NormalizerFactory::create();
$serializer = new Serializer($normalizers, $encoders);
See the Symfony Serializer component., (*4)
Running the tests
First checkout the library, then run, (*5)
composer install
Coding Style
We follow PSR2, and also enforce PHPDocs on all functions. To run the tests for coding style violations, (*6)
vendor/bin/phpcs -p --standard=psr2 src/
Unit tests
We use PHPSpec for unit tests. To run the unit tests, (*7)
vendor/bin/phpspec run
Contributing
Please read CONTRIBUTING.md for details on our code
of conduct, and the process for submitting pull requests to us., (*8)
Versioning
We use SemVer for versioning. For the versions
available, see the tags on this repository., (*9)
Authors
See the list of contributors who participated in this project., (*10)
License
This project is licensed under the MIT License - see the LICENSE.md file for details., (*11)