Download the PHP package zablose/dotenv without Composer
On this page you can find all versions of the php package zablose/dotenv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package dotenv
DotEnv
Read '.env' file to a static array.
Installation
Usage
Read '.env' file(s)
Probably in your index.php
after auto loader.
Get ENV
Or
Works, if helper function is in use - added to the project's composer
autoload -> files
section.
What is supported?
Look at ENVs testing examples for more info.
Variables
USER=username
EMAIL=${USER}@domain.com
Arrays
PROTECTED_0=_token
PROTECTED_1=password
Value Types
Type | Example |
---|---|
Boolean | DEBUG_ON=true |
Float | PI=3.14 |
Integer | RAM=128 |
String | GREETING=Welcome back! |
Development
Check submodule's readme for more details about development environment used.
Hosts
Append to /etc/hosts
.
Quick Start
$ git clone -b 'dev' --single-branch --depth 1 https://github.com/zablose/dotenv.git dotenv
$ cd dotenv
$ git submodule update --init
# Copy env file, then ammend it to your needs.
$ cp .env.example .env
$ docker-compose -p zdev up -d
# To see post-script logs, while container is starting.
$ tail -f docker-damp/logs/all.log
# To enter container, using Bash shell.
$ docker exec -it dotenv-damp bash
(dotenv-damp)$ phpunit
License
This package is free software distributed under the terms of the MIT license.
All versions of dotenv with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
The package zablose/dotenv contains the following files
Loading the files please wait ....