承接 cwhite92/dotenvdiff 相关项目开发

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

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

cwhite92/dotenvdiff

最新稳定版本:v1.0.0

Composer 安装命令:

composer require cwhite92/dotenvdiff

包简介

Easily see differences between two .env files

README 文档

README

dotenvdiff

dotenvdiff (ded) allows you to quickly compare the environment variable differences between two .env (or .env.example) files.

Installation

Requirements:

  • PHP 7.3 or greater

Require the tool globally via Composer:

composer global require cwhite92/dotenvdiff

If you don't have Composer's bin directory in your $PATH, now is the time to add it to ~/.bash_profile or ~/.bashrc:

export PATH=~/.composer/vendor/bin:$PATH

Usage

Simply run the ded command and give it the locations of the two .env files that you wish to compare:

ded /path/to/first/.env /path/to/second/.env

If you're running this in a Laravel project, you probably want to run it like this in your project's root directory:

ded .env.example .env

It will give an output similar to the below:

╔═════════════════════╤══════╗
║ .env.example        │ .env ║
╟─────────────────────┼──────╢
║ GITHUB_API_ENDPOINT │      ║
╚═════════════════════╧══════╝

In this instance, there is a new GITHUB_API_ENDPOINT environment variable that exists in .env.example but not in .env. Somebody on our team added it and forgot to tell us 🙂

License

cwhite92/dotenvdiff is licensed under the MIT License (MIT). Please see the license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-30