switon/yaml

Switon YAML subset parsing and interpolation utilities

Maintainers

Package info

github.com/switon-php/yaml

Documentation

pkg:composer/switon/yaml

Statistics

Installs: 29

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-05-09 16:44 UTC

This package is auto-updated.

Last update: 2026-05-09 23:40:14 UTC


README

Strict YAML subset parsing and placeholder interpolation for Switon Framework.

Installation

composer require switon/yaml

Requirements: PHP 8.3+

Quick Start

use Switon\Yaml\YamlReaderInterface;

#[Autowired]
protected YamlReaderInterface $yamlReader;

$data = $this->yamlReader->parse($yaml);
$data = $this->yamlReader->interpolate($data, ['APP_ENV' => 'prod']);

Docs: https://docs.switon.dev/latest/yaml

License

MIT.