GithubHelp home page GithubHelp logo

jakus1 / laravel-env-diff Goto Github PK

View Code? Open in Web Editor NEW

This project forked from binondord/laravel-env-diff

0.0 0.0 0.0 220 KB

Create a visual Diff of multiple .env files

Home Page: https://packagist.org/packages/romanzipp/laravel-env-diff

License: MIT License

PHP 100.00%

laravel-env-diff's Introduction

Laravel Env Diff

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}
              {conf? : Specify config files, overriding default env-diff.php}
              {--actualize : Actualize differences from two env files}
              {--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

laravel-env-diff's People

Contributors

binondord avatar jakus1 avatar romanzipp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.