byjg/config
A lightweight configuration library for PHP that loads settings from arrays, INI, JSON, YAML, and environment variables, with dot-notation access, defaults, merging, and environment-specific overrides for flexible app configuration.
6.1.0, run your test suite, and clear cached config before validating behavior:
composer update vendor/package
php artisan config:clear
Definition in the package source, especially addConfigDirectory().Definition is configured.config/ directory and any published config files.// Adjust to the package's actual Definition wiring.
$definition->addConfigDirectory(__DIR__.'/config/defaults');
$definition->addConfigDirectory(config_path('vendor/package'));
config('package.key') rather than assuming merge order.addConfigDirectory() as the package-friendly replacement for ad hoc mergeConfigFrom() calls when you need multiple config layers. Keep publishable config files for users who prefer explicit overrides.config() values. Explicitly test nested keys, associative arrays, and list/array replacement behavior.Definition configuration in your own package bootstrap helper if you need conditional directory registration based on environment, feature flags, or installed packages.php artisan config:clear while developing and ensure deployment scripts rebuild config cache after code changes.6.1.0 is a minor release, but stricter DependencyInjection validations may expose previously hidden misconfigurations. Run a full boot/smoke test, not just unit tests.How can I help you explore Laravel packages today?