承接 romanzipp/laravel-env-diff 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

romanzipp/laravel-env-diff

最新稳定版本:2.2.1

Composer 安装命令:

composer require romanzipp/laravel-env-diff

包简介

Create a visual Diff of .env and .env.example files

README 文档

README

Latest Stable Version Total Downloads License GitHub Build Status

Create a visual Diff of .env and .env.example files

Installation

composer require romanzipp/laravel-env-diff

If you use Laravel 5.5+ you are already done, otherwise continue.

Add Service Provider to your app.php configuration file:

romanzipp\EnvDiff\Providers\EnvDiffProvider::class,

Configuration

Copy configuration to config folder:

$ php artisan vendor:publish --provider="romanzipp\EnvDiff\Providers\EnvDiffProvider"
return [
    /*
     * Specify all environment files that should be compared.
     */
    'files'         => [
        '.env',
        '.env.example',
    ],

    /*
     * The base path to look for environment files.
     */
    'path'          => base_path(),

    /*
     * User colors when printing console output.
     */
    'use_colors'    => true,

    /*
     * Hide variables that exist in all .env files.
     */
    'hide_existing' => true,

    /*
     * Show existing env values instead of y/n.
     */
    'show_values'   => false,
];

Usage

$ php artisan env:diff
              {files? : Specify environment files, overriding config}
              {--values : Display existing environment values}';

Example

$ php artisan env:diff .env,.env.second

Preview

$ php artisan env:diff .env,.env.second --values

Preview

Testing

./vendor/bin/phpunit

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-14