bappygates/laravel-env-checker
Composer 安装命令:
composer require bappygates/laravel-env-checker
包简介
Checks required environment variables in a Laravel project.
README 文档
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-01