yiisoft/composer-config-plugin
POST_AUTOLOAD_DUMP event, ensuring configs are auto-assembled during install, update, or dump-autoload, reducing manual setup..env files (via vlucas/phpdotenv), reducing friction for teams using diverse config formats.require Yiisoft\Composer\Config\Builder::path('web') or by publishing to config/ and binding to the container..env support integrates with Laravel’s dotenv ecosystem.vendor/yiisoft/composer-config-plugin-output, which can be symlinked into Laravel’s bootstrap/cache/ for performance.config/services.php for package-specific settings).auth, payments).config:cache by enabling runtime config assembly without pre-caching.yiisoft/config. Migration to the newer package should be planned if long-term support is required.composer.json extras, and config merging logic.composer du -v) may be needed to diagnose circular dependencies or merge conflicts.composer dump-autoload triggers config reassembly, which could slow down CI/CD pipelines or local development if configs are large.config:cache, this plugin doesn’t support cache invalidation for specific configs.yiisoft/config (recommended) or proceed with this plugin?config/app.php vs. vendor/package/config.php)config/local.php) be handled?composer dump-autoload be too slow for our CI/CD pipeline?config:publish and package discovery?config/ directory from assembled configs?params.php)app('config.key')..env files are natively supported, aligning with Laravel’s 12-factor principles.bootstrap/cache/ for performance.spatie/laravel-permission defining its own config/permissions.php).?) for feature flags.composer.json or using Builder::rebuild().config/app.php into config/auth.php, config/cache.php).config-plugin-output-dir to point to config/ for seamless Laravel integration.extra.config-plugin.config('key') with require Builder::path('web') where needed.config/:
"scripts": {
"post-autoload-dump": [
"php artisan config:clear",
"ln -sfn vendor/yiisoft/composer-config-plugin-output/config/* config/"
]
}
ConfigRepository to fall back to plugin-generated configs.POST_AUTOLOAD_DUMP.phpdotenv for .env support (auto-installed via composer require vlucas/phpdotenv).symfony/yaml needed for YAML support (optional).composer require yiisoft/composer-config-plugin.composer.json (e.g., config-plugin-output-dir).packages/package-a/config.php).extra.config-plugin in each package’s composer.json.AppServiceProvider:
public function boot() {
$config = require Yiisoft\Composer\Config\Builder::path('web');
config($config);
}
config() helper if needed (e.g., to support sub-configs)..env.testing).composer dump-autoload runs in CI/CD pipelines.config:cache).composer.json and package directories.composer.json and files.dump-autoload).config:publish or package discovery.composer du -v to inspect package dependency hierarchy.How can I help you explore Laravel packages today?