symplify/php-config-printer
Print Symfony service and parameter configs to clean PHP files using nikic/php-parser. Generate output for configured services only or full configs (e.g., from YAML arrays) via SmartPhpConfigPrinter and YamlToPhpConverter. Ideal for config transformations and automation.
Developer Experience (DX) for Laravel Teams:
AppServiceProvider, bind() calls) into a human-readable PHP array format, reducing the "black box" nature of dynamic service bindings. This is particularly valuable for teams using runtime-generated services (e.g., via factories, dynamic providers, or third-party packages like spatie/laravel-medialibrary).Tooling and Automation:
Security and Compliance:
Roadmap for "Config-as-Code":
php-diff).api").Build vs. Buy:
app()->tag()).Consider if:
Avoid if:
bind() calls with no dynamic logic).php artisan container:dump, tinker, or IDE debugging).spatie/laravel-config-array, custom scripts with nikic/php-parser, or Laravel’s built-in tools).For Executives: *"This package helps us treat Laravel’s service container as first-class code—converting complex, scattered service bindings into inspectable PHP arrays. This unlocks critical capabilities for our team:
AppServiceProvider or third-party packages. Generate a single PHP file with all service definitions.For Engineering Leads:
*"Symplify’s php-config-printer solves a hidden productivity drain in Laravel: debugging service bindings. Here’s how it helps us:
For Developers: *"Imagine running a command and getting a single PHP file with every service binding in your Laravel app—no YAML, no magic, just plain PHP arrays. Here’s why this is useful:
php artisan tinker guessing games.For Architects/Tech Leads (Bonus): *"This package aligns with our modularity goals by:
How can I help you explore Laravel packages today?