PHPackages                             aeliot/yaml-token - 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. aeliot/yaml-token

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

aeliot/yaml-token
=================

Tokenizer of YAML

0.1.0(1mo ago)0150↓73.3%1MITPHPPHP ^8.2CI passing

Since May 30Pushed 1mo agoCompare

[ Source](https://github.com/Aeliot-Tm/yaml-token)[ Packagist](https://packagist.org/packages/aeliot/yaml-token)[ RSS](/packages/aeliot-yaml-token/feed)WikiDiscussions main Synced 1w ago

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

YAML Token
==========

[](#yaml-token)

[![Testing](https://github.com/Aeliot-Tm/yaml-token/actions/workflows/automated-testing.yaml/badge.svg?branch=main)](https://github.com/Aeliot-Tm/yaml-token/actions/workflows/automated-testing.yaml?query=branch%3Amain)[![Security Audit](https://github.com/Aeliot-Tm/yaml-token/actions/workflows/security-audit.yaml/badge.svg?branch=main)](https://github.com/Aeliot-Tm/yaml-token/actions/workflows/security-audit.yaml?query=branch%3Amain)[![GitHub License](https://camo.githubusercontent.com/46774a1d52eb8342b0e009c21e1df574637c3d63fd772ac178b6ee4cc11af7ce/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f41656c696f742d546d2f79616d6c2d746f6b656e3f6c6162656c3d4c6963656e7365266c6162656c436f6c6f723d626c61636b)](LICENSE)

A YAML parser that represents YAML as a hierarchical structure of nodes and tokens.

Purpose
-------

[](#purpose)

The library enables working with YAML not only as data but as a full structure of the source text represented by nodes and tokens. It provides base layer for the analysis and modification of YAML with isolated impact and without side effects.

Unlike [`symfony/yaml`](https://github.com/symfony/YAML), which is designed for `YAML → array`and `array → YAML` conversion, this library provides a mechanism for analyzing and precisely manipulating the source YAML.

YAML Specifications
-------------------

[](#yaml-specifications)

- [YAML 1.0](https://yaml.org/spec/1.0/) (2004-01-29)
- [YAML 1.1](https://yaml.org/spec/1.1/) (2005-01-18)
- [YAML 1.1: merge](https://yaml.org/type/merge.html) (2005-01-18)
- [YAML 1.2.0](https://yaml.org/spec/1.2.0/) (2009-07-21)
- [YAML 1.2.1](https://yaml.org/spec/1.2.1/) (2009-10-01)
- [YAML 1.2.2](https://yaml.org/spec/1.2.2/) (2021-10-01)
- [Specification Changes](https://yaml.org/spec/1.2.2/ext/changes/)

### Mapping project terms to the YAML specification

[](#mapping-project-terms-to-the-yaml-specification)

- [Mapping of project token types to the YAML specification](docs/TokenTypeNamingMapping.md)

Acknowledgments
---------------

[](#acknowledgments)

Thanks to [Masaaki Goshima](https://github.com/goccy) for [goccy/go-yaml](https://github.com/goccy/go-yaml)test fixtures used under the MIT License and with the author's permission in `tests/fixture/go_yaml/`and `tests/fixture/go_yaml_extra/`.

Third-party notices
-------------------

[](#third-party-notices)

This repository includes third-party materials that are not covered solely by the copyright in [LICENSE](LICENSE). Their sources, scope, and license terms are listed in [THIRD\_PARTY\_NOTICES.md](THIRD_PARTY_NOTICES.md).

Contributing
------------

[](#contributing)

Feedback and contributions are welcome. Open an issue to discuss larger changes before investing significant time. Pull requests for fixes and tests are appreciated.

Read [contributing instructions](CONTRIBUTING.md).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance91

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

55d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56d81f2702c20990da8d701ba1083e398c94cfcadfdd27b1a90e7791aac92053?d=identicon)[aeliot-tm](/maintainers/aeliot-tm)

---

Top Contributors

[![Aeliot-Tm](https://avatars.githubusercontent.com/u/8513062?v=4)](https://github.com/Aeliot-Tm "Aeliot-Tm (566 commits)")

---

Tags

parsertokenizeryamlyaml-configurationyaml-tokenizeryamltokenizeryaml-parserYAML Tokenizer

### Embed Badge

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

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

###  Alternatives

[jms/metadata

Class/method/property metadata management in PHP

1.8k160.2M98](/packages/jms-metadata)[nette/neon

🍸 Nette NEON: encodes and decodes NEON file format.

93966.0M400](/packages/nette-neon)[mustangostang/spyc

A simple YAML loader/dumper class for PHP

73143.7M212](/packages/mustangostang-spyc)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

1.0k13.8M189](/packages/hassankhan-config)[spatie/yaml-front-matter

A to the point yaml front matter parser

3482.0M107](/packages/spatie-yaml-front-matter)[yethee/tiktoken

PHP version of tiktoken

1624.0M30](/packages/yethee-tiktoken)

PHPackages © 2026

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