2017 © Pedro Peláez
 

library flex-env

Edit your .env file in Laravel directly from the command line.

image

sven/flex-env

Edit your .env file in Laravel directly from the command line.

  • Monday, July 16, 2018
  • by svenluijten
  • Repository
  • 1 Watchers
  • 89 Stars
  • 8,951 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 6 Forks
  • 5 Open issues
  • 19 Versions
  • 14 % Grown

The README.md

flex-env, (*1)

Laravel FlexEnv

Latest Version on Packagist Total Downloads ![Software License][ico-license] ![Build Status][ico-travis] Code Climate [![Code Quality][ico-quality]][link-quality] StyleCI, (*2)

This package adds a handful of useful commands to edit your .env file in Laravel directly from the command line with a simple, human readable API. Never touch the mouse again!, (*3)

Installation

Via composer:, (*4)

$ composer require sven/flex-env --dev

Alternatively, add the package to your dev dependencies in composer.json and run composer update afterwards:, (*5)

{
    "require-dev": {
        "sven/flex-env": "^2.0"
    }
}

Note: If you're using Laravel 5.5, you're done! The service provider is automatically registered in the container, thanks to auto-discovery., (*6)

Next, add the FlexEnvServiceProvider to your providers array in config/app.php:, (*7)

// config/app.php
'providers' => [
    ...
    Sven\FlexEnv\FlexEnvServiceProvider::class,
]

Usage

The commands in this package should now be registered. Simply run php artisan, and you will see them in the list., (*8)

# Create or edit an entry in your .env file:
$ php artisan env:set {key} {value} [--line-break|-L]
# Add the --line-break (or -L) option to insert a line break before the entry.
# Delete an entry from your .env file:
$ php artisan env:delete {key}
# Show the value of the given key from your .env file:
$ php artisan env:get {key}
# Show the entire .env file:
$ php artisan env:list

All changes you made should now be reflected in your .env file., (*9)

Inspiration

Inspiration for this package came from LeShadow's ArtisanExtended., (*10)

Contributing

All contributions (pull requests, issues and feature requests) are welcome. Make sure to read through the CONTRIBUTING.md first, though. See the contributors page for all contributors., (*11)

License

sven/flex-env is licensed under the MIT License (MIT). See the license file for more information., (*12)

The Versions

16/07 2018

dev-dependabot/composer/phpunit/phpunit-tw-7.2.7

dev-dependabot/composer/phpunit/phpunit-tw-7.2.7

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

22/06 2018

dev-dependabot/composer/phpunit/phpunit-tw-7.2.6

dev-dependabot/composer/phpunit/phpunit-tw-7.2.6

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

30/04 2018

dev-dependabot/composer/phpunit/phpunit-tw-7.1.5

dev-dependabot/composer/phpunit/phpunit-tw-7.1.5

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

19/04 2018

dev-dependabot/composer/phpunit/phpunit-tw-7.1.4

dev-dependabot/composer/phpunit/phpunit-tw-7.1.4

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

29/03 2018

dev-dependabot/composer/graham-campbell/testbench-tw-4.0

dev-dependabot/composer/graham-campbell/testbench-tw-4.0

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

29/03 2018

dev-dependabot/composer/phpunit/phpunit-tw-7.0.3

dev-dependabot/composer/phpunit/phpunit-tw-7.0.3

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

12/12 2017

dev-master

9999999-dev

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

27/09 2017

3.0.x-dev

3.0.9999999.9999999-dev

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

19/06 2017

2.1.1

2.1.1.0

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

29/03 2017

v2.1.0

2.1.0.0

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

15/01 2017

dev-3.0-dev

dev-3.0-dev

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

25/03 2016

v2.0.4

2.0.4.0

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

23/03 2016

v2.0.3

2.0.3.0

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

25/01 2016

v2.0.2

2.0.2.0

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

23/01 2016

dev-2.0.0-beta

dev-2.0.0-beta https://github.com/svenluijten/flex-env

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

23/01 2016

v2.0.1

2.0.1.0 https://github.com/svenluijten/flex-env

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

23/01 2016

v2.0.0-beta

2.0.0.0-beta https://github.com/svenluijten/flex-env

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan env flexible

15/01 2016

v1.0.0

1.0.0.0 https://github.com/svenluijten/flex-env

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

laravel artisan env flexible

15/01 2016

1.0.0.x-dev

1.0.0.9999999-dev https://github.com/svenluijten/flex-env

Edit your .env file in Laravel directly from the command line.

  Sources   Download

MIT

The Requires

 

laravel artisan env flexible