fitbug/symfony-yaml-serializer-encoder-decoder
最新稳定版本:v0.1.1
Composer 安装命令:
composer require fitbug/symfony-yaml-serializer-encoder-decoder
包简介
A encoder and decoder for Yaml for the Symfony Serializer Component.
README 文档
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.
统计信息
- 总下载量: 285.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-12