melihovv/laravel-env-validator 问题修复 & 功能扩展

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

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

melihovv/laravel-env-validator

最新稳定版本:7.0.2

Composer 安装命令:

composer require melihovv/laravel-env-validator

包简介

Laravel Validator for the .env file

README 文档

README

GitHub Workflow Status styleci

Packagist Packagist Packagist

Laravel Env Validator is meant to validate your .env file in order to avoid any unexpected behaviour for not having properly defined some variable or value.

Highlights

  • Make sure you don't go live without all required .env variables and without the correct values
  • Validate you env variables using the Laravel Validator by simple defining rules in a configuration file
  • Working in teams becomes easier

Installation

Install via composer

composer require melihovv/laravel-env-validator

Publish configuration file

php artisan vendor:publish --provider="Melihovv\LaravelEnvValidator\ServiceProvider" --tag="config"

Example configuration file

// config/env-validator.php
<?php

return [
    'rules' => [
        'APP_NAME' => 'required|string',
        'APP_ENV'  => 'in:local,production',
    ],
];

Usage

Simply run following command

php artisan config:env-validator

Security

If you discover any security related issues, please email amelihovv@ya.ru instead of using the issue tracker.

Credits

统计信息

  • 总下载量: 39.86k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 16
  • 点击次数: 5
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-31