Download the PHP package fkrzski/dotenv without Composer
On this page you can find all versions of the php package fkrzski/dotenv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fkrzski/dotenv
More information about fkrzski/dotenv
Files in fkrzski/dotenv
Download fkrzski/dotenv
More information about fkrzski/dotenv
Files in fkrzski/dotenv
Vendor fkrzski
Package dotenv
Short Description Library that adds the ability to access variables from '.env', $_ENV, and $_SERVER using the getenv() function
License MIT
Homepage https://github.com/fkrzski/Dotenv
Package dotenv
Short Description Library that adds the ability to access variables from '.env', $_ENV, and $_SERVER using the getenv() function
License MIT
Homepage https://github.com/fkrzski/Dotenv
Please rate this library. Is it a good library?
Informations about the package dotenv
Dotenv
Library that adds the ability to access variables from '.env', $_ENV, and $_SERVER using the getenv() function
Installation
Usage
Basics
Add your application configuration variables to .env
file in your project. Next add .env
to .gitignore
file! You should create a .env.example
file to have a skeleton with variable names for your contributors
Include Dotenv
class
Load .env
variables
Custom path or file name
Many .env
files
Retrieving variables values
Overwrtitting a variable
.env
file
PHP file
Second possibility
.env
file
PHP file
Validating and requiring variables
.env
file
PHP file
Put single variable
All versions of dotenv with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package fkrzski/dotenv contains the following files
Loading the files please wait ....