rmoiseev / spyc
A psr-4 compatible fork of Spyc - simple YAML loader/dumper class for PHP
This package's canonical repository appears to be gone and the package has been frozen as a result.
Requires
- php: >=5.3.1
This package is not auto-updated.
Last update: 2020-12-02 00:57:05 UTC
README
This is composer and PSR-4 compatible fork of Spyc
Spyc is a YAML loader/dumper written in pure PHP. Given a YAML document, Spyc will return an array that you can use however you see fit. Given an array, Spyc will return a string which contains a YAML document built from your data.
YAML is an amazingly human friendly and strikingly versatile data serialization language which can be used for log files, config files, custom protocols, the works. For more information, see http://www.yaml.org.
Spyc supports YAML 1.0 specification.
Using Spyc
<?php
$data = \Rmoiseev\Spyc\Spyc::YAMLLoad('spyc.yaml');