2017 © Pedro Peláez
 

library sae-phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

image

litp/sae-phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  • Tuesday, June 14, 2016
  • by litp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 359 Forks
  • 0 Open issues
  • 21 Versions
  • 0 % Grown

The README.md

SAE PHP dotenv

SAE PHP dotenv是一个适配SinaAppEngine的PHP dotenv,修改自Vance Lucas的PHP dotenv。, (*1)

唯一的改动是在使用SAE禁用的函数putenv()前,先判断是否存在该函数,如果不存在则不使用该函数,如果存在则不做任何变动。 因为dotenv同时使用putenv,$_ENV和$_SERVER方法注册变量,因而在禁用了putenv的服务器上之后不能使用getenv函数来获得相应的环境变量,但可以从全局变量$_ENV和$_SERVER中取得变量。, (*2)

为什么要这么做?

PHP程序慢慢地在向模块化的方向发展,整个程序构建在其他人提供的各种模块之上。 为了能在SAE上使用PHP dotenv的模块以及使用基于PHP dotenv的一些应用(比如 Laravel), 需要一个不使用putenv函数的dotenv,于是有了这个。, (*3)

欢迎任何意见及建议。, (*4)

The Versions

14/06 2016

dev-patch-1

dev-patch-1

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD-3-Clause-Attribution

The Requires

  • php >=5.3.9

 

The Development Requires

environment env dotenv

20/03 2016

dev-master

9999999-dev http://github.com/litp/sae-phpdotenv

A modified version of dotenv that checks putenv function before using it

  Sources   Download

BSD

The Requires

  • php >=5.3.9

 

The Development Requires

environment env dotenv sae

20/03 2016

2.1.x-dev

2.1.9999999.9999999-dev http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD-3-Clause-Attribution

The Requires

  • php >=5.3.9

 

The Development Requires

environment env dotenv

29/12 2015

v2.2.0

2.2.0.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.9

 

The Development Requires

environment env dotenv

19/11 2015

v2.1.1

2.1.1.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.9

 

The Development Requires

environment env dotenv

28/10 2015

v2.1.0

2.1.0.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.9

 

The Development Requires

environment env dotenv

31/05 2015

2.0.x-dev

2.0.9999999.9999999-dev http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

30/05 2015

v2.0.1

2.0.1.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

30/05 2015

1.1.x-dev

1.1.9999999.9999999-dev http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

30/05 2015

v1.1.1

1.1.1.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

29/05 2015

v2.0.0

2.0.0.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

05/12 2014

v1.1.0

1.1.0.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

16/10 2014

v1.0.9

1.0.9.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

14/10 2014

v1.0.8

1.0.8.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

31/01 2014

1.0.6

1.0.6.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

14/01 2014

1.0.5

1.0.5.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

06/01 2014

1.0.4

1.0.4.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

29/12 2013

1.0.3

1.0.3.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

The Development Requires

environment env dotenv

12/08 2013

1.0.2

1.0.2.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

environment env dotenv

23/01 2013

1.0.1

1.0.1.0 http://github.com/vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

environment env dotenv

23/01 2013

1.0.0

1.0.0.0 http://github.com/vlucas/phpdotenv

Loads environment variables from a .env file

  Sources   Download

BSD

The Requires

  • php >=5.3.2

 

environment env