grasmash/yaml-expander
YAML Expander is a PHP library for recursively expanding YAML files, resolving special @import, @env, and @template tokens so configurations can be composed from multiple files and environment variables. It works well with Symfony and Drupal, supports custom expanders, and keeps large YAML configs D...
.env files already cover needs..env interpolation.config/*.php, .env, and existing CI templating already solve the problem.For executives: This is a small MIT-licensed PHP utility that lets us compose YAML configuration from reusable references instead of duplicating blocks across environments. It can reduce configuration drift in deployment, CI, and app-defined YAML workflows, with low integration cost. It is not a strategic platform or Laravel-native framework dependency. Approve a limited pilot in internal tooling or build pipelines, with a wrapper and output validation, rather than adopting it as a runtime dependency for customer-facing flows.
For engineering: Use it at build/deploy time behind a thin adapter, validate expanded YAML, and avoid untrusted input. Pin the version, monitor maintenance, and retain a fallback to Symfony YAML or native configuration if the package becomes unsupported. The value is proportional to how much YAML duplication we actually have; if that surface area is small, skip the dependency.
How can I help you explore Laravel packages today?