fitbug / symfony-yaml-serializer-encoder-decoder
A encoder and decoder for Yaml for the Symfony Serializer Component.
Installs: 283 218
Dependents: 4
Suggesters: 0
Security: 0
Stars: 3
Watchers: 8
Forks: 0
Open Issues: 0
Requires
- symfony/serializer: ^v2.0.0 || ^3.0.0
- symfony/yaml: ^v2.0.0 || ^3.0.0
Requires (Dev)
- phpspec/phpspec: ^2.0.0 || ^3.0.0
- squizlabs/php_codesniffer: ^2.6
This package is not auto-updated.
Last update: 2024-11-10 02:17:13 UTC
README
This package is a Yaml Encoder and Decoder for the Symfony Serializer component.
Getting Started
Prerequisities
You'll need to install:
- PHP (Minimum 5.6)
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.
Running the tests
First checkout the library, then run
composer install
Coding Style
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/
Unit tests
We use PHPSpec for unit tests. To run the unit tests
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.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
See the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.