PHPackages                             nbngr/yaml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. nbngr/yaml

ActiveLibrary

nbngr/yaml
==========

A simple YAML loader/dumper class for PHP

0310PHP

Since Feb 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nbngr/yaml)[ Packagist](https://packagist.org/packages/nbngr/yaml)[ RSS](/packages/nbngr-yaml/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

**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 .

Spyc supports YAML 1.0 specification.

Using Spyc
----------

[](#using-spyc)

Using Spyc is trivial:

```
