laravel-env-checker maintained by bappygates
Description
Checks required environment variables in a Laravel project.
Author
Last update
2025/07/01 14:21
(dev-main)
License
Downloads
0
Laravel Env Checker
A simple Laravel package to check for required environment variables and validate their presence and types.
🔧 Installation
composer require bappygates/laravel-env-checker
If using locally:
composer config repositories.env-checker path ./packages/laravel-env-checker
composer require bappygates/laravel-env-checker:dev-main
Then publish the config file:
php artisan vendor:publish --tag=config
⚙️ Configuration
The config/env-checker.php file contains a list of required environment variables and their expected types.
🚀 Usage
Run the checker with:
php artisan env:check
This will display all environment variables defined in the config file and indicate if they are missing, empty, or of the wrong type.
✅ Example Output
[✔] APP_NAME = MyApp
[✘] APP_KEY is missing
[✘] DB_PORT is not a valid integer
[!] MAIL_ENCRYPTION is empty
📄 License
MIT