Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Yaml Laravel Package

theofidry/laravel-yaml

Laravel YAML adds YAML configuration support to Laravel, letting you define app settings in readable .yaml files and load them through Laravel’s config system. It uses Symfony’s YAML parser for reliable parsing of YAML strings and files.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Configuration-as-data strategy: Informs whether your product exposes YAML (not PHP) as the operator-facing config format — relevant if your users are DevOps/SRE teams already living in YAML (Kubernetes, Ansible, CI pipelines) rather than PHP developers.
  • Build vs. buy for config loading: This package remains a reference implementation of "swap Laravel's PHP config loader for a YAML one." The decision it informs is whether to adopt an off-the-shelf loader, fork it, or spend a few days writing a ~100-line custom loader you own.
  • Multi-environment / ops-owned settings: Supports roadmap items around letting non-PHP staff tune feature flags, limits, and integration settings without a deploy or PHP knowledge.
  • Migration planning: Relevant if you're porting a legacy service (or an existing YAML-configured stack) into Laravel and want to preserve config files as-is rather than rewrite them — now with a slightly clearer floor of Laravel 5.1+.
  • Ecosystem risk assessment: A concrete data point for "should we depend on small single-maintainer packages?" — tiny adoption, no release lineage beyond a pre-1.0 beta, and a 2024-era drop that only reaches back to Laravel 5.1 (an EOL framework). The new release signals activity but does not signal a maintenance commitment.

When to Consider This Package

Consider (as a pattern, not a dependency) when:

  • You're on a legacy Laravel 5.1–5.x codebase that already has YAML config and you need a same-shaped migration path. v1.0.0-beta.2 explicitly claims Laravel 5.1+ compatibility, so this is now the one scenario where it's at least nominally in scope.
  • You want a small worked example of hooking Laravel's config repository/loader for a spike or proof-of-concept.
  • Your team is genuinely YAML-first and the cost of a custom loader looks higher than the cost of reading and vendoring this code.

Look elsewhere when:

  • You're on a modern Laravel version (8/9/10/11/12) — the package still advertises Laravel 5.1 as its compatibility target. Service providers, package discovery, config:cache expectations, and PHP 8-era typing are all outside what the release notes cover. Compatibility with current Laravel is unverified and almost certainly broken.
  • You need maintenance, security patching, or a support path. A single -beta.2 release with a one-line changelog does not constitute a maintenance commitment; assess the repo's activity and issue backlog before treating this as alive again.
  • You need production-grade config caching, validation, schema checking, or secret handling — none of that is in scope here.
  • The config format is user-facing and contractual; a pre-1.0 dependency in that path remains a long-term liability regardless of the new tag.

Adoption criteria if you insist: pin the Laravel/PHP versions, vendor the source in-repo, add your own tests around cache/clear behavior, avoid the beta tag in favor of a pinned commit, and treat it as forked code you now maintain.

How to Pitch It (Stakeholders)

To executives: This package solves a narrow, low-value problem — letting Laravel read YAML config files instead of PHP ones. The new v1.0.0-beta.2 release only adds Laravel 5.1+ compatibility, which is a nine-year-old framework generation; it is still pre-1.0 and still not a signal that the library is supported. Recommendation unchanged: do not adopt. If YAML config is a real product requirement, it's a small, bounded engineering task we can own outright; the strategic value is in the config format decision, not in this library.

To engineering: It's a service provider that swaps the config loader for a YAML one. The latest release bumps stated compatibility to Laravel 5.1+, which confirms the target audience is legacy 5.x — it does not indicate support for 8/9/10/11/12, config:cache, or PHP 8 typing. Treat it as a reference implementation, not a dependency. The surface area is tiny; reimplementing it against our actual Laravel version is cheaper and safer than carrying a beta package. If we do anything here, it's a short spike to confirm whether YAML config actually improves our ops workflow before we commit to the format.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk