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

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

socloz/spyc
===========

A simple YAML loader/dumper class for PHP

0.5.1(13y ago)03.8kMIT LicensePHPPHP &gt;=5.3.1

Since Feb 21Pushed 10y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (3)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:

```
