chrisdicarlo/
laravel-config-checker
g4t.io

Laravel Config Checker Package

106 stars by Eric L. Barnes

Package to check that configuration key references actually exist in your config files.

README from chrisdicarlo/laravel-config-checker Open on GitHub →

Check for undefined configuration key references in your Laravel project.

Latest Version on Packagist GitHub Tests (8.2 / 8.3) Action Status GitHub Tests (8.1) Action Status GitHub Code Style Action Status Total Downloads

This package adds an Artisan command to check for invalid configuration file references in your application code and Blade views.

Support me

Feel like shouting out a thank you? Buy me a coffee! ☕️

Installation

You can install the package via composer:

composer require chrisdicarlo/laravel-config-checker

After installing the package, you can publish the configuration file:

php artisan vendor:publish --tag="config-checker-config"

Usage

From the command-line, simply run:

php artisan config:check

The command will scan your Php code under app, database, routes, bootstrap and your Blade views under resources/views.
Any errors will be displayed in a table with information on the location and missing reference:

Sample Output

Customizing paths

If you want the command to scan PHP/Blade code under custom paths, you can add or update entries in config/config-checker.php.

Disabling progress

To disable progress bars (e.g. in CI), pass the --no-progress flag when running the command:

php artisan config:check --no-progress

Specifying the file type to check

To skip checking of Php or Blade files, pass --no-php or --no-blade respectively:

php artisan config:check --no-php
php artisan config:check --no-blade

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.

More from the ecosystem

marcreichel/
laya-php
g4t.io
3 53

LayaPHP: Self-Hosted Text Classification for PHP and Laravel

Classify text in PHP without an LLM bill: typed decisions in 100+ languages, self-hosted. Laravel-ready SDK for Laya, a Jev AI alternative.

ai classification decision-engine
marcreichel/laya-php via Laravel News
Josh-Dovey/
postcodes-laravel
g4t.io
5 9

Postcodes for Laravel: GB Postcode Lookup and Geography Data

Postcodes for Laravel adds typed GB postcode lookups, validation, geography data, distance searches, and test fakes through the GB Postcodes API.

Josh-Dovey/postcodes-laravel via Laravel News
RedberryProducts/
mailbox-for-laravel
g4t.io
4 115

Mailbox for Laravel: Preview and Test Rendered Email

Mailbox for Laravel captures outgoing mail in a local dashboard and lets you test rendered HTML, recipients, and attachments with fluent assertions.

RedberryProducts/mailbox-for-laravel via Laravel News