PHPackages                             mavsolutions/yaml-linter - 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. [CLI &amp; Console](/categories/cli)
4. /
5. mavsolutions/yaml-linter

ActiveLibrary[CLI &amp; Console](/categories/cli)

mavsolutions/yaml-linter
========================

A Symfony cli command utility for checking YAML file syntax

1.0.0(7mo ago)075GPL-2.0-or-laterPHP

Since Apr 11Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/mavolkmer/yaml-linter)[ Packagist](https://packagist.org/packages/mavsolutions/yaml-linter)[ Docs](https://github.com/mavolkmer/yaml-linter)[ RSS](/packages/mavsolutions-yaml-linter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

yaml-linter
===========

[](#yaml-linter)

Wrapper for symfony/yaml's LintCommand ([see Symfony/Yaml](https://symfony.com/doc/current/components/yaml.html#syntax-validation))

Call it like Symfony's LintCommand with `filename` as arguments, single files as `exclude`-Option and with additional option `excludePattern`.
ExcludePattern are parsed with symfony/finder ([see Symfony/Finder](https://symfony.com/doc/current/components/finder.html)) as path and all matching `yaml|yml` are added to LintCommand's exclude-options.

use-case
--------

[](#use-case)

In some projects one might use local composer-packages which have their own frontend-buildchain. This buildchain might integrate some third-party libraries into your project-structure with malformed `yaml`-files which you don't need to care for.

```
├── composer.json
├── src
…
└── packages
    └── local-subpackage
        ├── composer.json
        ├── Configuration
        ├── Documentation
        ├── Resources
        │   ├── node_modules
        │   │   ├── some third party npm-packages
        │   │   └── …
        │   ├── package.json
        │   ├── Sources
        │   ├── webpack.config.js
        │   └── yarn.lock
        …
```

When scanning this whole project with a `yaml-lint`-command I got some errors from node\_modules-subdirectories. You should for sure validate those error-messages, create several pull-requests to the third-party repos, patch your local files while waiting for pr to be merged - but to be honest in real life you only need a "green pipeline".

Example
-------

[](#example)

```
vandor/bin/yaml-linter src --excludePattern=thirdParty

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance66

Regular maintenance activity

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

Total

2

Last Release

232d ago

Major Versions

0.1.0 → 1.0.02025-09-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/6546043c170ddb5781d7a60d9617580ec7b74c0c9e83cc54daa8961ff1e1f1fc?d=identicon)[markusvolkmer](/maintainers/markusvolkmer)

---

Top Contributors

[![mavolkmer](https://avatars.githubusercontent.com/u/9119282?v=4)](https://github.com/mavolkmer "mavolkmer (6 commits)")

---

Tags

clisymfonyutilityyamlymllintsyntax

### Embed Badge

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

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

###  Alternatives

[j13k/yaml-lint

A compact command line utility for checking YAML file syntax

161.1M19](/packages/j13k-yaml-lint)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[phpcr/phpcr-shell

Shell for PHPCR

721.3M8](/packages/phpcr-phpcr-shell)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)[sclable/xml-lint

A php cli tool to lint and validate xml files.

24626.9k23](/packages/sclable-xml-lint)

PHPackages © 2026

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