romaricdrigon/metayaml
MetaYAML is a PHP library for loading YAML files and validating their contents against a schema. It catches configuration errors early, supports typed fields and constraints, and builds on Symfony's YAML parser for reliable structured data. Ideal for validating app configuration and metadata files.
Consider adopting when:
ValidatorInterface so the schema engine can be swapped later.Look elsewhere when:
opis/json-schema, justinrainbow/json-schema) for better tooling, editor support, and an actual specification.Validator plus Yaml::parse() covers your needs. Simpler, already in the stack, no extra dependency.For executives: "We're considering a small MIT-licensed PHP library, metayaml, that lets us describe what a YAML configuration file should look like once and then automatically reject bad configs. It shortens delivery for our config-driven features by avoiding a custom validator, and it reduces support tickets caused by malformed configuration. It's low-commitment: we'll wrap it behind our own interface so we can replace it with JSON Schema or in-house code if we outgrow it. The main caveat is maintenance — the project isn't actively developed — so we treat it as a contained, replaceable tool, not a platform dependency. Estimated saving is [X engineer-days] against a modest ongoing watch item."
For engineering:
"It's a schema validator for YAML, where the schema itself is YAML. We get nested types, enums, required fields, partials, and imports without writing a validator. Use it for internal configs, fixtures, import manifests, and pipeline definitions — not for public contracts. Put it behind a ValidatorInterface, pin the version, and add our own tests for semantic rules the library can't express. Watch the Symfony YAML dependency and the project's activity; assume we may fork or replace it. Do not expose the schema format to customers."
How can I help you explore Laravel packages today?