PHPackages                             dirtsimple/yaml2json - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dirtsimple/yaml2json

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dirtsimple/yaml2json
====================

Full-fidelity YAML/JSON command-line converters

v1.3.0(2mo ago)24.2k[1 issues](https://github.com/dirtsimple/yaml2json/issues)MITPHP

Since Mar 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/dirtsimple/yaml2json)[ Packagist](https://packagist.org/packages/dirtsimple/yaml2json)[ RSS](/packages/dirtsimple-yaml2json/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (9)Versions (8)Used By (0)

YAML/JSON Converters
====================

[](#yamljson-converters)

This is a pure-PHP YAML to JSON (and JSON to YAML) converter pair for use with [jqmd](https://github.com/bashup/jqmd), [imposer](https://github.com/dirtsimple/imposer), and similar tools in environments where better conversion tools are not available.

The converters take no options, reading one format from stdin and writing the other to stdout. The executables are PHARs named `yaml2json.php` and `json2yaml.php` to avoid conflict with other executables with these base names, and are distributed as PHARs to avoid dependency conflicts.

(That is, requiring this package installs only the executable PHARs to `vendor/bin` to be used *purely as command-line tools*, without affecting the requiring project's autoloader or dependencies.)

As of version 1.2, the output of `json2yaml.php` is generated using the [dirtsimple/clean-yaml](https://github.com/dirtsimple/clean-yaml/) package, to support optimum diffing and readability.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance76

Regular maintenance activity

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~500 days

Recently: every ~616 days

Total

7

Last Release

68d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3527052?v=4)[PJ Eby](/maintainers/pjeby)[@pjeby](https://github.com/pjeby)

---

Top Contributors

[![pjeby](https://avatars.githubusercontent.com/u/3527052?v=4)](https://github.com/pjeby "pjeby (12 commits)")

### Embed Badge

![Health badge](/badges/dirtsimple-yaml2json/health.svg)

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

###  Alternatives

[ghunti/highcharts-php

A php wrapper for highcharts and highstock javascript libraries

3622.3M5](/packages/ghunti-highcharts-php)

PHPackages © 2026

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