PHPackages                             sspooky13/yaml-alphabetical-checker - 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. sspooky13/yaml-alphabetical-checker

Abandoned → [sspooky13/yaml-standards](/?search=sspooky13%2Fyaml-standards)ArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

sspooky13/yaml-alphabetical-checker
===================================

YAML alphabetical checker

2.0.0(8y ago)5232MITPHPPHP ~5.6 || ~7.0

Since Nov 4Pushed 7y agoCompare

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

READMEChangelogDependencies (6)Versions (4)Used By (0)

YAML alphabetical checker
=========================

[](#yaml-alphabetical-checker)

[![Latest Stable Version](https://camo.githubusercontent.com/4233fd9a4ac541c1a29f39e34e89740bb83fcb05e97d49d384e67f440c44b015/68747470733a2f2f706f7365722e707567782e6f72672f7373706f6f6b7931332f79616d6c2d616c7068616265746963616c2d636865636b65722f762f737461626c65)](https://packagist.org/packages/sspooky13/yaml-alphabetical-checker)[![Total Downloads](https://camo.githubusercontent.com/77aff7989a1765fd143c8ce1ce289f897d05581a47e9313a8231a4e72fbe6231/68747470733a2f2f706f7365722e707567782e6f72672f7373706f6f6b7931332f79616d6c2d616c7068616265746963616c2d636865636b65722f646f776e6c6f616473)](https://packagist.org/packages/sspooky13/yaml-alphabetical-checker)[![Build Status](https://camo.githubusercontent.com/619a551aadcd0e4bf62d39f010375049438cb2fb42666b29211cff64d0d0a642/68747470733a2f2f7472617669732d63692e6f72672f7373706f6f6b7931332f79616d6c2d616c7068616265746963616c2d636865636b65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sspooky13/yaml-alphabetical-checker)[![Build status](https://camo.githubusercontent.com/9a60e00693c112426c0af55d4437bfc0aa74f4905c36cee4b27d423bd224dc8d/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f7277383972356d3332383237766832642f6272616e63682f6d61737465723f7376673d74727565)](https://ci.appveyor.com/project/sspooky13/yaml-alphabetical-checker/branch/master)

### This repository is unmaintained and deprecated. I recommend [yaml standards repository](https://github.com/sspooky13/yaml-standards)

[](#this-repository-is-unmaintained-and-deprecated-i-recommend-yaml-standards-repository)

This library helps you to keep YAML files alphabetically sorted.

Requirements
------------

[](#requirements)

Works with minimal requirement:

- PHP 5.6 or higher
- symfony/console version 3.0
- symfony/yaml version 3.0
- sebastian/diff version 1.4

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

[](#installation)

If you prefer using [Composer](http://getcomposer.org/) you can easily install with the following command:

```
composer require --dev sspooky13/yaml-alphabetical-checker

```

Or alternatively, include a dependency for sspooky13/yaml-alphabetical-checker in your composer.json file. For example:

```
{
    "require-dev": {
        "sspooky13/yaml-alphabetical-checker": "~2.0"
    }
}
```

Options for run
---------------

[](#options-for-run)

- `--exclude=text` Exclude file contains the `text` in name. Can be used more times.

Usage
-----

[](#usage)

For run from command line:

```
./bin/yaml-alphabetical-checker ./app ./src/path/to/config/file.yml ./src --exclude=serv --exclude=conf

```

If you need exclude a files from check, you can print command `--exclude=NAME` how much you want.

or setting for ANT:

```

```

PHPStorm Integration
--------------------

[](#phpstorm-integration)

You can integrate YAML alphabetical checker into PHPStorm by using File Watcher.

1. Open Settings -&gt; Tools -&gt; File Watchers
2. Add new -&gt; custom
3. Give it a name
4. Select file type: `YAML`
5. Program: `\vendor\bin\yaml-alphabetical-checker.bat`
6. Arguments: `$FilePath$` for check actual opened file or `$SourcepathEntry$` for check all source file, etc.

Now, file watcher check YAML files, whether is right alphabetically sorted and will open the console if they have errors

Exit codes
----------

[](#exit-codes)

Exit code is built using following bit flags:

```
0 OK.
1 Some file is unsorted.
2 General error (file is not readable, error with parse yaml file).

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3099d ago

Major Versions

1.0.1 → 2.0.02017-11-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f3939e828b18aabc1321f21c34828a11ba737734243aaf0284246bff45e5b23?d=identicon)[sspooky13](/maintainers/sspooky13)

---

Top Contributors

[![sspooky13](https://avatars.githubusercontent.com/u/25614491?v=4)](https://github.com/sspooky13 "sspooky13 (35 commits)")

---

Tags

checkerstandardyamlyamlcheckeralphabetical

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sspooky13-yaml-alphabetical-checker/health.svg)

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

###  Alternatives

[sspooky13/yaml-standards

Standards for yaml files

11518.3k3](/packages/sspooky13-yaml-standards)[spatie/yaml-front-matter

A to the point yaml front matter parser

3411.8M68](/packages/spatie-yaml-front-matter)[pragmarx/yaml

Load your Laravel config files using yaml

1152.8M29](/packages/pragmarx-yaml)[dragon-code/codestyler

A tool to automatically fix Coding Style Standards issues by The Dragon Code.

291.8M16](/packages/dragon-code-codestyler)[mhujer/yaml-sort-checker

YAML sort checker checks if your YML files are properly sorted to prevent merge conflicts

2361.6k](/packages/mhujer-yaml-sort-checker)[thunderer/serializard

Flexible serializer

2767.3k1](/packages/thunderer-serializard)

PHPackages © 2026

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