PHPackages                             mustangostang/spyc - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. mustangostang/spyc

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

mustangostang/spyc
==================

A simple YAML loader/dumper class for PHP

0.6.3(6y ago)73440.3M↓15.4%205[27 issues](https://github.com/mustangostang/spyc/issues)[4 PRs](https://github.com/mustangostang/spyc/pulls)20MITPHPPHP &gt;=5.3.1

Since Feb 21Pushed 6y ago37 watchersCompare

[ Source](https://github.com/mustangostang/spyc)[ Packagist](https://packagist.org/packages/mustangostang/spyc)[ Docs](https://github.com/mustangostang/spyc/)[ RSS](/packages/mustangostang-spyc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (6)Used By (20)

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

```
