Download the PHP package wexample/php-yaml without Composer
On this page you can find all versions of the php package wexample/php-yaml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wexample/php-yaml
More information about wexample/php-yaml
Files in wexample/php-yaml
Download wexample/php-yaml
More information about wexample/php-yaml
Files in wexample/php-yaml
Vendor wexample
Package php-yaml
Short Description A lightweight PHP library for resolving includes between YAML files
License MIT
Package php-yaml
Short Description A lightweight PHP library for resolving includes between YAML files
License MIT
Please rate this library. Is it a good library?
Informations about the package php-yaml
PHP YAML Includes
A lightweight PHP library for resolving includes between YAML files with support for inheritance, references, and performance-optimized caching.
Developed by Wexample.
Installation
Features
- Resolve includes between YAML files
- Support for references with
@domain::key
syntax - Support for same-key references via
@domain::%
- Complete YAML file inheritance with
~extends: @domain
- Support for nested paths with dot notation (
key.subkey.value
) - High-performance multi-level caching system for optimized lookups
- Batch processing of multiple values with automatic reference resolution
Usage
Basic Example
Batch Processing
YAML File Format
Simple References
Same-Key References
Complete Inheritance
After resolution, child.yml
will contain:
Constants
The YamlIncludeResolver class defines several constants that you can use:
DOMAIN_PREFIX
: '@' - Prefix for domain referencesDOMAIN_SEPARATOR
: '::' - Separator between domain and keyDOMAIN_SAME_KEY_WILDCARD
: '%' - Wildcard to reference the same key in another domainFILE_EXTENDS
: '~extends' - Key used for extending another YAML fileKEYS_SEPARATOR
: '.' - Separator for nested keys
Integration with Symfony Translations
This library integrates seamlessly with the Symfony Translation component through the companion package wexample/symfony-translations:
License
MIT
All versions of php-yaml with dependencies
PHP Build Version
Package Version
The package wexample/php-yaml contains the following files
Loading the files please wait ....