bappygates / laravel-env-checker
Checks required environment variables in a Laravel project.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/bappygates/laravel-env-checker
Requires
- php: ^8.0
- illuminate/support: ^10.0|^11.0
This package is auto-updated.
Last update: 2025-12-31 00:17:29 UTC
README
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