fluentdom/yaml-dipper

YAML support for FluentDOM (using Dipper)

0.1.1 2017-07-30 18:38 UTC

This package is auto-updated.

Last update: 2024-10-08 22:17:59 UTC


README

License Build Status Total Downloads Latest Stable Version Latest Unstable Version

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);