laravel-config-drift maintained by jackbayliss
Laravel Config Drift
Find new and extra options in your published Laravel config files after upgrading packages or the framework.
Once you've published a package's config file, you never hear about new options the package adds or old ones it drops. This compares your published config files against the originals and tells you which options are new and which are extra. It never changes your files.
Requirements
PHP 8.3+ and Laravel 13+.
Installation
You can install the package via composer:
composer require jackbayliss/laravel-config-drift --dev
Usage
Check all of your published config files:
php artisan config:outdated
config/database.php ............................................. 2 new
database.connections.sqlite.busy_timeout .......................... new
database.connections.sqlite.journal_mode .......................... new
config/mail.php ......................................... 1 new, 1 extra
mail.mailers.smtp.scheme .......................................... new
mail.mailers.smtp.encryption ...................................... extra
new: an option in the original config file that yours doesn't have.extra: an option in your config file that the original doesn't have.
Check a single config file by passing its name:
php artisan config:outdated database
php artisan config:outdated horizon
Fail your CI build when a config file is outdated:
php artisan config:outdated --fail
Output the results as JSON:
php artisan config:outdated --json
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.