Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-env-diff maintained by amjadbm

Description
Create a visual Diff of .env and .env.example files
Last update
2024/09/17 00:27 (dev-main)
License
Links
Downloads
292

Comments
comments powered by Disqus

Laravel Env Diff

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

Installation

composer require abm/laravel-env-diff:^1.0.0

Configuration

Copy configuration to config folder:

$ php artisan vendor:publish --provider="AmjadBM\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 abm:env:diff
              {files? : Specify environment files, overriding config}
              {--values : Display existing environment values}';

Example

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

Testing

./vendor/bin/phpunit