PHPackages                             ljy/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. ljy/spyc

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

ljy/spyc
========

A simple YAML loader/dumper class for PHP

0.6.3(8y ago)093WTFPLPHPPHP &gt;=5.3.1

Since Feb 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jyiL/spyc)[ Packagist](https://packagist.org/packages/ljy/spyc)[ RSS](/packages/ljy-spyc/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (6)Used By (0)

Spyc
====

[](#spyc)

[![Latest Stable Version](https://camo.githubusercontent.com/5afecf7efc6bf1685832631f34b4b48bc19bea644184c76cf227136dac54f10d/68747470733a2f2f706f7365722e707567782e6f72672f6c6a792f737079632f762f737461626c65)](https://packagist.org/packages/ljy/spyc)[![Total Downloads](https://camo.githubusercontent.com/39a3eb13b129cf5a89a8524294b1feed107d10d65d58251f5eb960dc9d74168e/68747470733a2f2f706f7365722e707567782e6f72672f6c6a792f737079632f646f776e6c6f616473)](https://packagist.org/packages/ljy/spyc)[![Latest Unstable Version](https://camo.githubusercontent.com/140a7fad4222d8791df62179d7165dae7cfc0deeac3414f5bb97e0954ce7cb1a/68747470733a2f2f706f7365722e707567782e6f72672f6c6a792f737079632f762f756e737461626c65)](https://packagist.org/packages/ljy/spyc)[![License](https://camo.githubusercontent.com/9a3e8a2cddbd9114dfa241f087c347a9918771da395d747566dd4599c4e00aff/68747470733a2f2f706f7365722e707567782e6f72672f6c6a792f737079632f6c6963656e7365)](https://packagist.org/packages/ljy/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 .

Spyc supports YAML 1.0 specification.

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

[](#using-spyc)

Using Spyc is trivial:

```
