2017 © Pedro Peláez
 

library laravel-dot-env-gen

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

image

mathiasgrimm/laravel-dot-env-gen

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

  • Monday, April 20, 2015
  • by mathiasgrimm
  • Repository
  • 4 Watchers
  • 174 Stars
  • 24,035 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 9 Forks
  • 4 Open issues
  • 10 Versions
  • 6 % Grown

The README.md

Laravel Dot Env Generator

A Laravel 5 command that generates a .env.gen file containing all environment variables defined in .env as well as any undefined variables that are being used throughout the project., (*1)

Installation

Install the package using composer:, (*2)

composer require mathiasgrimm/laravel-dot-env-gen:dev-master

Add the service provider:, (*3)

// config/app.php

'providers' => [
    ...
    'MathiasGrimm\LaravelDotEnvGen\DotEnvGenServiceProvider',
    ...
],

Add .env.gen to your .gitignore, (*4)

Configuration

You can control which directories are scanned by providing exclusion rules in the dotenvgen.php config file. For a fresh Laravel install, we suggest that all subdirectories inside vendor are ignored except for vendor/laravel., (*5)

Publish the config file:, (*6)

php artisan vendor:publish --provider="MathiasGrimm\LaravelDotEnvGen\DotEnvGenServiceProvider" --tag="config"

Example config:, (*7)

// config/dotenvgen.php

'rules' => [
    // Ignores all files inside `vendor` except for those in `vendor/laravel`
    'vendor' => ['laravel'],

    // Ignores the `database/seeds` directory
    'database/seeds' => [],
],

Usage

From the command line, run php artisan env:gen., (*8)

A .env.gen file will be generated in your project's root folder. Make any changes you may need, then rename the file to .env., (*9)

Along with generating the .env.gen file, the command will notify you if a defined environment variable is unused as well as alert you if an undefined environment variable is being used., (*10)

Screenshot

Screenshot, (*11)

The Versions

20/04 2015

dev-master

9999999-dev https://github.com/mathiasgrimm/laravel-dot-env-gen/

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

  Sources   Download

The Requires

  • php >=5.4.0

 

command artisan environment env dotenv

20/04 2015

v0.9

0.9.0.0 https://github.com/mathiasgrimm/laravel-dot-env-gen/

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

  Sources   Download

The Requires

  • php >=5.4.0

 

command artisan environment env dotenv

31/03 2015

v0.8

0.8.0.0 https://github.com/mathiasgrimm/laravel-dot-env-gen/

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

  Sources   Download

The Requires

  • php >=5.4.0

 

command artisan environment env dotenv

24/03 2015

v0.7

0.7.0.0 https://github.com/mathiasgrimm/laravel-dot-env-gen/

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

  Sources   Download

The Requires

  • php >=5.4.0

 

command artisan environment env dotenv

22/03 2015

v0.6

0.6.0.0 https://github.com/mathiasgrimm/laravel-dot-env-gen/

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

  Sources   Download

The Requires

  • php >=5.4.0

 

command artisan environment env dotenv

13/03 2015

v0.5

0.5.0.0 https://github.com/mathiasgrimm/laravel-dot-env-gen/

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

  Sources   Download

The Requires

  • php >=5.4.0

 

command artisan environment env dotenv

07/03 2015

v0.4

0.4.0.0 https://github.com/mathiasgrimm/laravel-dot-env-gen/

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

  Sources   Download

The Requires

  • php >=5.4.0

 

command artisan environment env dotenv

07/03 2015

v0.3

0.3.0.0 https://github.com/mathiasgrimm/laravel-dot-env-gen/

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

  Sources   Download

The Requires

  • php >=5.4.0

 

command artisan environment env dotenv

04/03 2015

v0.2

0.2.0.0 https://github.com/mathiasgrimm/laravel-dot-env-gen/

laravel artisan command that generates a .env.gen file based on the existing project source code.

  Sources   Download

The Requires

  • php >=5.4.0

 

command artisan environment env dotenv

04/03 2015

v0.1

0.1.0.0 https://github.com/mathiasgrimm/laravel-dot-env-gen/

laravel artisan command that generates a .env.gen file based on the existing project source code.

  Sources   Download

The Requires

  • php >=5.4.0

 

command artisan environment env dotenv