indragunawan/laravel-env-handler

Laravel 5 artisan command to handling the environment configuration (.env)
57 6
Install
composer require indragunawan/laravel-env-handler
Latest Version:v0.1.0
PHP:>=5.4.0
License:MIT
Last Updated:Apr 17, 2016
Links: GitHub  ·  Packagist
Maintainer: indragunawan

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.

Related Packages

mykehowells/dotenv

Load .env file into project environment, using same functions as Laravel

9,662 2
bca/laravel-inspect

Instant support for PHP Code Sniffer, PHP CS Fixer, and PHP MD in the Artisan CL...

24,154 50
brotzka/laravel-dotenv-editor

A package for editing the .env file in your Laravel root.

164,569 370
fedeisas/laravel-js-routes

Laravel 4 routes from Javascript

138,842 62