PHPackages                             symplely/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. [Queues &amp; Workers](/categories/queues)
4. /
5. symplely/yaml

ActiveLibrary[Queues &amp; Workers](/categories/queues)

symplely/yaml
=============

A Async simple YAML loader/dumper class for PHP

1.0.1(6y ago)2491[1 issues](https://github.com/symplely/yaml/issues)1MITPHPPHP ^7.0

Since Jun 10Pushed 5y agoCompare

[ Source](https://github.com/symplely/yaml)[ Packagist](https://packagist.org/packages/symplely/yaml)[ Docs](https://github.com/symplely/yaml/)[ RSS](/packages/symplely-yaml/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (1)

Yaml
====

[](#yaml)

[![Build Status](https://camo.githubusercontent.com/1a13ae87230fb734d11552657251f4190d687ae4fa714536f37aea58455e61ea/68747470733a2f2f7472617669732d63692e6f72672f73796d706c656c792f79616d6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/symplely/yaml)[![Build status](https://camo.githubusercontent.com/1288a67415b6c79bfdc4db381eb8a2351fdc2ed04eb632aa96a26c1699253abb/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f69766a6e31743531743569306d3839652f6272616e63682f6d61737465723f7376673d74727565)](https://ci.appveyor.com/project/techno-express/yaml/branch/master)[![codecov](https://camo.githubusercontent.com/3d8acfd66e6597c931f2cf1915bb6e037fec74c9f1d3ae5f5b5ef262e878127e/68747470733a2f2f636f6465636f762e696f2f67682f73796d706c656c792f79616d6c2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/symplely/yaml)[![Codacy Badge](https://camo.githubusercontent.com/1d176b86883fab72c8b3e7aa130d35a7c54bb07d5dafcf62a61b0e485d207b06/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3837313363386666396338623430643362613933636339313361363631313863)](https://www.codacy.com/app/techno-express/yaml?utm_source=github.com&utm_medium=referral&utm_content=symplely/yaml&utm_campaign=Badge_Grade)[![Maintainability](https://camo.githubusercontent.com/749181bf6ba93fe54ee4fcb323b485be524c4441ca3a1c5b3499ff6275dc352b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63626334643436343163656432383334383935382f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/symplely/yaml/maintainability)

An pure PHP implementation base YAML loader/dumper.

- Given a YAML document, will return an array that you can use however you see fit.
- Given an array, 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 .

Supporting YAML 1.1 specification.

Installation
------------

[](#installation)

```
composer require symplely/yaml
```

Usage
-----

[](#usage)

Using Yaml is trivial:

The `parse()` or `loader()` method parses a YAML string and converts it to a PHP array:

```
require 'vendor/autoload.php';

use Async\Yaml;

 // Reading YAML Contents
$Data = Yaml::loader('config.yaml');
// Or
$Data = Yaml::parse("foo: bar");
// Or
$Data = yaml_load("foo: bar");
// $Data = ['foo' => 'bar']
```

or (if you prefer functional syntax)

```
require 'vendor/autoload.php';

$Data = yaml_load_file('config.yaml');
```

The `dumper()` method dumps any PHP array to its YAML representation:

```
require 'vendor/autoload.php';

use Async\Yaml;

$array = [
    'foo' => 'bar',
    'bar' => ['foo' => 'bar','bar' => 'baz'],
];

$yaml = Yaml::dumper($array);
// Or
$yaml = yaml_dump($array);

// Writing YAML Files
file_put_contents('/path/to/file.yaml', $yaml);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Total

3

Last Release

2430d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1a9d88c23f07f785e0358746ae2384950a6f8dac0c3bd4fbbc910e94f7eb637?d=identicon)[techno-express](/maintainers/techno-express)

---

Top Contributors

[![mustangostang](https://avatars.githubusercontent.com/u/96861?v=4)](https://github.com/mustangostang "mustangostang (32 commits)")[![TheTechsTech](https://avatars.githubusercontent.com/u/29784725?v=4)](https://github.com/TheTechsTech "TheTechsTech (20 commits)")[![jackmcdade](https://avatars.githubusercontent.com/u/44739?v=4)](https://github.com/jackmcdade "jackmcdade (8 commits)")[![ryanuber](https://avatars.githubusercontent.com/u/1642288?v=4)](https://github.com/ryanuber "ryanuber (7 commits)")[![elfen](https://avatars.githubusercontent.com/u/1545456?v=4)](https://github.com/elfen "elfen (7 commits)")[![chernjie](https://avatars.githubusercontent.com/u/275729?v=4)](https://github.com/chernjie "chernjie (3 commits)")[![takamin](https://avatars.githubusercontent.com/u/952896?v=4)](https://github.com/takamin "takamin (2 commits)")[![jasonvarga](https://avatars.githubusercontent.com/u/105211?v=4)](https://github.com/jasonvarga "jasonvarga (2 commits)")[![Mark-H](https://avatars.githubusercontent.com/u/312944?v=4)](https://github.com/Mark-H "Mark-H (1 commits)")[![Nikerabbit](https://avatars.githubusercontent.com/u/1109395?v=4)](https://github.com/Nikerabbit "Nikerabbit (1 commits)")[![quicksketch](https://avatars.githubusercontent.com/u/100206?v=4)](https://github.com/quicksketch "quicksketch (1 commits)")[![seebz](https://avatars.githubusercontent.com/u/694570?v=4)](https://github.com/seebz "seebz (1 commits)")[![thi3rry](https://avatars.githubusercontent.com/u/225944?v=4)](https://github.com/thi3rry "thi3rry (1 commits)")[![4d47](https://avatars.githubusercontent.com/u/729919?v=4)](https://github.com/4d47 "4d47 (1 commits)")[![tmtysk](https://avatars.githubusercontent.com/u/37685?v=4)](https://github.com/tmtysk "tmtysk (1 commits)")[![al-the-x](https://avatars.githubusercontent.com/u/96015?v=4)](https://github.com/al-the-x "al-the-x (1 commits)")[![castor4bit](https://avatars.githubusercontent.com/u/30964?v=4)](https://github.com/castor4bit "castor4bit (1 commits)")[![entendu](https://avatars.githubusercontent.com/u/276273?v=4)](https://github.com/entendu "entendu (1 commits)")[![eugenealegiojo](https://avatars.githubusercontent.com/u/259748?v=4)](https://github.com/eugenealegiojo "eugenealegiojo (1 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (1 commits)")

---

Tags

yamlyaml-filesyaml-parserasyncyamlyml

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/symplely-yaml/health.svg)

```
[![Health](https://phpackages.com/badges/symplely-yaml/health.svg)](https://phpackages.com/packages/symplely-yaml)
```

###  Alternatives

[amphp/amp

A non-blocking concurrency framework for PHP applications.

4.4k123.4M323](/packages/amphp-amp)[react/socket

Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP

1.3k116.9M402](/packages/react-socket)[revolt/event-loop

Rock-solid event loop for concurrent PHP applications.

91943.6M138](/packages/revolt-event-loop)[spatie/async

Asynchronous and parallel PHP with the PCNTL extension

2.8k4.5M37](/packages/spatie-async)[amphp/parallel

Parallel processing component for Amp.

84746.2M74](/packages/amphp-parallel)[react/dns

Async DNS resolver for ReactPHP

535114.1M100](/packages/react-dns)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
