oscarotero/env
Simple library to consume environment variables
v2.1.1
12M downloads/mo
#1498 most downloaded on Packagist
oscarotero/env
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 4 months to 4.5 years
Nearly every release is documented
notes for 8 of 8 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
8 releases · first in 2015
0 releases in the last 12 months
see the full history below
Release timeline
8 releases · Dec 2015 to Dec 2024Releases
latest 8-
v2.1.103 Dec 2024 -
v2.1.011 Jun 2020Release notes
Open source →Added
- New constant
Env::USE_SERVER_ARRAYto get the values using$_SERVERarray insteadgetenv()[#8].
- New constant
-
v2.0.003 Jun 2020Release notes
Open source →Changed
- This library is under the
Envnamespace instead the global. [#7] - The function
envis underEnvnamespace and loaded automatically. [#7] - Included PHP 7 strict typing
Removed
- Support for PHP 5.x and PHP 7.0.
- This library is under the
-
v1.2.003 Apr 2019Release notes
Open source →Added
- New constant
Env::LOCAL_FIRSTto get first the values of locally-set environment variables [#6].
Fixed
- Added requirement for ctype extension in composer.json [#4].
Release notes
Open source →Added
- New constant
Env::LOCAL_FIRSTto get first the values of locally-set environment variables [#6].
Fixed
- Added requirement for ctype extension in composer.json [#4].
- New constant
-
v1.1.017 Jul 2017Release notes
Open source →Added
- New constant
Env::USE_ENV_ARRAYto get the values using$_ENVarray insteadgetenv()#3.
Fixed
- Fixed test in php versions 5.2 and 7.x
Release notes
Open source →Added
- New constant
Env::USE_ENV_ARRAYto get the values using$_ENVarray insteadgetenv()[#3].
Fixed
- Fixed test in php versions 5.2 and 7.x
- New constant
-
v1.0.208 May 2016Release notes
Open source →Env::init()checks if the functionenv()exists, to prevent fatal errors on declare the function twice. If the funcion couldn't be included, returns false, otherwise returns true #1.Env::init(); //returns true Env::init(); //returns false
Release notes
Open source →Fixed
Env::init()checks if the functionenv()exists, to prevent fatal errors on declare the function twice. If the funcion couldn't be included, returns false, otherwise returns true [#1].
-
v1.0.131 Dec 2015 -
v1.0.030 Dec 2015Release notes
Open source →