fitbug/symfony-yaml-serializer-encoder-decoder

A encoder and decoder for Yaml for the Symfony Serializer Component.

v0.1.1 2016-08-12 14:15 UTC

This package is not auto-updated.

Last update: 2024-10-27 02:13:13 UTC


README

Scrutinizer Code Quality Build Status Dependency Status Latest Stable Version License

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.