定制 ap1969/laravel-env-validator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ap1969/laravel-env-validator

最新稳定版本:9.0.0

Composer 安装命令:

composer require ap1969/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.

Cloned from https://github.com/melihovv/laravel-env-validator , which has not bee updated in years. This version updated for PHP8.1 and Laravel v9.x

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 ap1969/laravel-env-validator

Publish configuration file

php artisan vendor:publish --provider="Ap1969\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 support@notifium.com instead of using the issue tracker.

Credits

统计信息

  • 总下载量: 526
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固