fluentdom / yaml-dipper
YAML support for FluentDOM (using Dipper)
0.1.1
2017-07-30 18:38 UTC
Requires
- fluentdom/fluentdom: 6.x
- secondparty/dipper: dev-support-stdclass
This package is auto-updated.
Last update: 2024-11-08 22:34:35 UTC
README
Adds support for YAML to FluentDOM. It adds a loader and a serializer. It uses the Dipper library.
NOTE: At the moment a fork of Dipper is used.
This plugin needs FluentDOM 5.2.1 aka the current development version.
Installation
composer require fluentdom/yaml-dipper
Loader
The loader registers automatically. You can trigger it with the types yaml
and text/yaml
.
$document = FluentDOM::load($yaml, 'text/yaml'); $query = FluentDOM($yaml, 'text/yaml');
Serializer
The serializer needs to be created with for document and can be casted into a string.
echo new FluentDOM\YAML\Dipper\Serializer($document);