承接 kielabokkie/dotenv-diff 相关项目开发

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

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

kielabokkie/dotenv-diff

最新稳定版本:v1.0.0

Composer 安装命令:

composer require kielabokkie/dotenv-diff

包简介

Checks the differences between dotenv files

README 文档

README

Author Packagist Version Software License Gitter

This package automatically compares your .env an .env.example files and notifies you when there are differences.

Installation

The preferred way of installing this package is through composer:

composer require kielabokkie/dotenv-diff

Usage

Once the package is installed there are two ways of running the Dotenv diff automatically, either by using git hooks or composer scripts.

Git hooks

First of all you can have the Dotenv diff run automatically when you do a git pull. To set this up you'll need to copy over the supplied post-merge git hook to your .git/hooks folder.

From the root of your project execute the following command:

cp vendor/kielabokkie/dotenv-diff/git/hooks/post-merge .git/hooks/

Note: this will overwrite your existing post-merge hook so if you already have one you'll need to figure out how to combine multiple post merge hooks

Composer

You can also set it up so it runs whenever you run composer commands like composer install or composer update.

All you need to do is call the run method from the scripts section of your composer.json file:

{
    "scripts": {
        "post-install-cmd": [
            "Kielabokkie\\DotenvDiff::run"
        ],
        "post-update-cmd": [
            "Kielabokkie\\DotenvDiff::run"
        ]
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-08-09