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

This package is auto-updated.

Last update: 2024-12-07 20:44:29 UTC


README

Build Status Codacy Badge Codacy Badge Packagist Packagist 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:

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"
}