2017 © Pedro Peláez
 

library simple-dot-env

Get .env file and put variables in $_ENV

image

mmqfilho/simple-dot-env

Get .env file and put variables in $_ENV

  • Monday, October 23, 2017
  • by mmqfilho
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Simple Dot Env

version: 1.0, (*1)

date: 2016/03/02, (*2)

Author: Marcos Menezes <mmqfilho@gmail.com>, (*3)

How to use

include the file and set the namespace, (*4)

include_once 'src/Simpledotenv.php';
or use autoload composer
include_once YOUR_VENDOR_DIR . '/autoload.php' ;

use Mmqfilho\SimpleDotEnv\SimpleDotEnv as Env;

Create object, (*5)

new Env('PATH/TO/.ENV_FILE');   

Only path, do not put filename., (*6)

Create and/or edit .env file, (*7)

VAR_NAME1=VALUE_1
VAR_NAME2=VALUE_2
VAR_NAME3=VALUE_3

Get the env variable, (*8)

$var1 = $_ENV['VAR_NAME1'];

The Versions

23/10 2017

dev-master

9999999-dev https://github.com/mmqfilho/simpleDotEnv

Get .env file and put variables in $_ENV

  Sources   Download

GPLv2

The Requires

  • php >=5.3.0

 

by Marcos Menezes

environment .env _env

23/10 2017

1.0.7

1.0.7.0 https://github.com/mmqfilho/simpleDotEnv

Get .env file and put variables in $_ENV

  Sources   Download

GPLv2

The Requires

  • php >=5.3.0

 

by Marcos Menezes

environment .env _env

23/10 2017

1.0.6

1.0.6.0 https://github.com/mmqfilho/simpleDotEnv

Get .env file and put variables in $_ENV

  Sources   Download

GPLv2

The Requires

  • php >=5.3.0

 

by Marcos Menezes

environment .env _env

23/10 2017

1.0.5

1.0.5.0 https://github.com/mmqfilho/simpleDotEnv

Get .env file and put variables in $_ENV

  Sources   Download

GPLv2

The Requires

  • php >=5.3.0

 

by Marcos Menezes

environment .env _env

23/10 2017

1.0.4

1.0.4.0 https://github.com/mmqfilho/simpleDotEnv

Get .env file and put variables in $_ENV

  Sources   Download

GPLv2

The Requires

  • php >=5.3.0

 

by Marcos Menezes

environment .env _env

23/10 2017

1.0.3

1.0.3.0 https://github.com/mmqfilho/simpleDotEnv

Get .env file and put variables in $_ENV

  Sources   Download

GPLv2

The Requires

  • php >=5.3.0

 

by Marcos Menezes

environment .env _env

23/10 2017

1.0.1

1.0.1.0 https://github.com/mmqfilho/simpleDotEnv

Get .env file and put variables in $_ENV

  Sources   Download

GPLv2

The Requires

  • php >=5.3.0

 

by Marcos Menezes

environment .env _env

02/03 2016

1.0

1.0.0.0 https://github.com/mmqfilho/simpleDotEnv

Get .env file and put variables in $_ENV

  Sources   Download

GPLv2

The Requires

  • php >=5.3.0

 

by Marcos Menezes

environment .env _env