bappygates / laravel-env-checker
Checks required environment variables in a Laravel project.
dev-main
2025-07-01 12:21 UTC
Requires
- php: ^8.0
- illuminate/support: ^10.0|^11.0
This package is auto-updated.
Last update: 2025-07-01 12:26:02 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