idrinth / yaml-facade
provides an facade for php-yaml, syck and symphony/yaml so switching in between is easier
1.2.0
2018-07-24 06:52 UTC
Requires
- php: ^5.3.3 || ^7
- symfony/yaml: >=2.6
Requires (Dev)
- phpunit/phpunit: ^4.8||^5.7||^6.5||^7.0
- squizlabs/php_codesniffer: ^3.1
Suggests
- ext-syck: A faster option for parsing and writing yaml
- ext-yaml: The most up to date, faster option for parsing and writing yaml
This package is auto-updated.
Last update: 2024-12-07 20:44:29 UTC
README
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.
"require": {
"idrinth/yaml-facade": "^1.0"
}