2017 © Pedro Peláez
 

library dotenv-manipulator

This package can manipulate the .env file of a laravel project on runtime.

image

astrotomic/dotenv-manipulator

This package can manipulate the .env file of a laravel project on runtime.

  • Sunday, May 14, 2017
  • by Gummibeer
  • Repository
  • 4 Watchers
  • 3 Stars
  • 72 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

.ENV Manipulator - Laravel 5

This package can manipulate the .env file on runtime., (*1)

GitHub release GitHub license GitHub issues, (*2)

StyleCI Code Climate, (*3)

Installation

Add it as dependency to composer composer require absolutehh/dotenv-manipulator and add the \Absolute\DotEnvManipulator\ManipulatorServiceProvider to your config/app.php, (*4)

Usage

Code

use Absolute\DotEnvManipulator\Libs\DotEnv;

$dotenv = new DotEnv('/ma/app/base/path', '.env');
// get current value
$value = $dotenv->get('YOUR_ENV_VAR');
// set and write value
$dotenv->set('YOUR_ENV_VAR', 'new_value')->write();
// sort variables in .env file
$dotenv->sort()->write();

Command-Line

php artisan dotenv:get YOUR_ENV_VAR
php artisan dotenv:set YOUR_ENV_VAR --value=new_value

The Versions

14/05 2017

dev-master

9999999-dev

This package can manipulate the .env file of a laravel project on runtime.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hannes Daus

laravel dotenv

14/05 2017

1.1

1.1.0.0

This package can manipulate the .env file of a laravel project on runtime.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hannes Daus

laravel dotenv

17/03 2017

0.4

0.4.0.0

This package can manipulate the .env file of a laravel project on runtime.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel dotenv

17/03 2017

1.0

1.0.0.0

This package can manipulate the .env file of a laravel project on runtime.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel dotenv

17/03 2017

0.3

0.3.0.0

This package can manipulate the .env file of a laravel project on runtime.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel dotenv

17/03 2017

0.2

0.2.0.0

This package can manipulate the .env file of a laravel project on runtime.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel dotenv

17/03 2017

0.1

0.1.0.0

This package can manipulate the .env file of a laravel project on runtime.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel dotenv