bappygates/laravel-env-checker 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固