fluentdom/yaml-symfony

YAML support for FluentDOM (using Symfony/YAML)

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 1

pkg:composer/fluentdom/yaml-symfony

3.0.0 2021-05-08 15:56 UTC

This package is auto-updated.

Last update: 2025-10-04 16:36:06 UTC


README

License CI Total Downloads Latest Stable Version Latest Unstable Version

Adds support for YAML to FluentDOM. It adds a loader and a serializer. It uses the Symfony/YAML component.

Installation

composer require fluentdom/yaml-symfony

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 for a document and can be cast into a string.

echo new FluentDOM\YAML\Symfony\Serializer($document);
$query = FluentDOM($yaml, 'text/yaml');
echo $query;