https://github.com/idrinth/php-yaml-facade
Provides a facade in front of three different parser/writer implementations for php
https://github.com/idrinth/php-yaml-facade
facade php yaml yml
Last synced: 11 days ago
JSON representation
Provides a facade in front of three different parser/writer implementations for php
- Host: GitHub
- URL: https://github.com/idrinth/php-yaml-facade
- Owner: Idrinth
- License: mit
- Created: 2017-12-22T18:46:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-19T04:17:23.000Z (9 months ago)
- Last Synced: 2025-01-26T10:08:40.302Z (9 months ago)
- Topics: facade, php, yaml, yml
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP YAML Facade
[](https://travis-ci.org/Idrinth/php-yaml-facade)
[](https://www.codacy.com/app/Idrinth/php-yaml-facade?utm_source=github.com&utm_medium=referral&utm_content=Idrinth/php-yaml-facade&utm_campaign=Badge_Grade)
[](https://www.codacy.com/app/Idrinth/php-yaml-facade?utm_source=github.com&utm_medium=referral&utm_content=Idrinth/php-yaml-facade&utm_campaign=Badge_Coverage)
[](https://packagist.org/packages/idrinth/yaml-facade)
[](https://packagist.org/packages/idrinth/yaml-facade)
[](https://github.com/Idrinth/php-yaml-facade/blob/master/LICENSE)This library unifies the access to two different php-extensions and the symphony yaml component to make switching easier. It falls back to implementations in the following order:
- php yaml ( http://php.net/manual/en/book.yaml.php )
- php syck ( https://github.com/indeyets/syck )
- symfony/yaml ( https://packagist.org/packages/symfony/yaml )## Limitations
Since the yaml-implementations deal with errors very differently, please don't try to parse something that is not intended to end up as an array.
## Low Coverage
Currently building the syck library fails on travis, so the related code can not be tested and tests are skipped.
## Installation
Installation via composer is the proposed way of using this library. It will always use [semantic versioning](http://semver.org).
```
"require": {
"idrinth/yaml-facade": "^1.0"
}
```