Download the PHP package melbahja/environ without Composer
On this page you can find all versions of the php package melbahja/environ. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download melbahja/environ
More information about melbahja/environ
Files in melbahja/environ
Download melbahja/environ
More information about melbahja/environ
Files in melbahja/environ
Vendor melbahja
Package environ
Short Description Load environment variables from .env file ONLY on $_ENV and runtime.
License MIT
Package environ
Short Description Load environment variables from .env file ONLY on $_ENV and runtime.
License MIT
Please rate this library. Is it a good library?
Informations about the package environ
Environ
Load PHP environment variables from .env (INI syntax) file only on $_ENV
and runtime.
Installation :
Why?
Some env libraries load variables into $_SERVER
and $_REQUEST
, which is a stupid idea that can lead to expose credentials and insert sensitive information into log files. environ
only load variables to superglobal $_ENV
and runtime via putenv
.
Usage :
/path/to/your/project/.env
YourScript.php
Note:
Arrays will not be available in getenv()
, you can only access them via $_ENV
or Environ::get()
.
Helper
Environ methods :
License :
MIT Copyright (c) 2018-present Mohamed Elbahja
All versions of environ with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package melbahja/environ contains the following files
Loading the files please wait ....