symplify/amnesia
Provides PHP constant wrappers for Symfony configuration keys to replace typo-prone strings in PHP config files. Covers common extensions like Framework, Twig, Doctrine and Routing, making config safer, more discoverable, and easier to refactor.
ConfigBuilder or Laravel’s built-in tools.config/ files are insufficient.ConfigBuilder but needs to support older configurations in the meantime.ConfigBuilder or Laravel’s native config() system.symfony/yaml for YAML parsing.spatie/laravel-config-array for Laravel-specific dynamic configuration.mergeConfigFrom for runtime overrides.For Executives:
"This deprecated package provides a short-term solution for parsing legacy Symfony configurations in our [X] system, but it’s a temporary workaround. We’re proposing a phased migration to Symfony 5.3’s native ConfigBuilder or Laravel’s built-in tools to eliminate technical debt and reduce long-term maintenance costs by ~25%. The risk is minimal—this is a one-time cleanup effort with no user-facing impact, and it aligns with our roadmap to modernize the stack."
For Engineering: "Symplify/Amnesia was a solid stopgap for Symfony <5.3, but it’s now obsolete. Here’s the plan:
composer why symplify/amnesia to identify where it’s used.ConfigBuilder (Symfony 5.3+).spatie/laravel-config-array or Laravel’s mergeConfigFrom.For Developers: "If you’re working with legacy Symfony configs (YAML/XML) in Laravel, this package can help transition to PHP-based configs. However, it’s deprecated, so we’ll replace it with:
ConfigBuilder (native support).spatie/laravel-config-array or service providers.
No action needed yet—we’ll handle the migration in the next sprint. Let us know if you’re using this package so we can prioritize your area."How can I help you explore Laravel packages today?