Download the PHP package knorkfork/load-environment without Composer
On this page you can find all versions of the php package knorkfork/load-environment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download knorkfork/load-environment
More information about knorkfork/load-environment
Files in knorkfork/load-environment
Download knorkfork/load-environment
More information about knorkfork/load-environment
Files in knorkfork/load-environment
Vendor knorkfork
Package load-environment
Short Description Load environment variables from .env file
License MIT
Package load-environment
Short Description Load environment variables from .env file
License MIT
Please rate this library. Is it a good library?
Informations about the package load-environment
Load environment
Load environment variables from .env (and .env.local) into PHP.
Installation
Usage
Assuming .env file and .php file are in the same folder, you can load environment variables like this:
By default it will also try to load .env.local file if it exists.
All variables set in .env.local will overwrite variables from .env.
If you want to load from custom env file, pass it via second argument.
Environment variables can also be accessed without Environment class.
All versions of load-environment with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
The package knorkfork/load-environment contains the following files
Loading the files please wait ...