indragunawan / laravel-env-handler by indragunawan

Laravel 5 artisan command to handling the environment configuration (.env)
57
6
1
Package Data
Maintainer Username: indragunawan
Maintainer Contact: hello@indra.my.id (Indra Gunawan)
Package Create Date: 2015-06-01
Package Last Update: 2016-04-17
Language: PHP
License: MIT
Last Refreshed: 2024-12-15 15:15:54
Package Statistics
Total Downloads: 57
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 6
Total Watchers: 1
Total Forks: 1
Total Open Issues: 0

Managing your Laravel 5 environment (.env)

This package allows you to manage your ignored environment configuration when you are running a composer install / update or even manually call the command. It works when storing the .env.example file under the application root. Other keys are copied without change.

Installation

Run the following command from your terminal:

composer require "indragunawan/laravel-env-handler: 0.*"

or add this to require section in your composer.json file:

{
   "require": {
       "indragunawan/laravel-env-handler": "0.*"
   }
}

run composer update

Then add Service provider to config/app.php

    'providers' => [
        // ...
        'IndraGunawan\LaravelEnvHandler\EnvHandlerServiceProvider'
    ]

Usage

via command line

$ php artisan env:update

Options

$ php artisan env:update --force

execute the update even though there are no new environment parameters

Credits

This package is largely inspired by this.