divineomega/dotenv-loader
最新稳定版本:v2.0.3
Composer 安装命令:
composer require divineomega/dotenv-loader
包简介
Dotenv loader is a simple PHP library that will automatically load in a `.env` file from the root of your project into environment variables.
README 文档
README
The dotenv-loader is a simple PHP helper that automatically loads in a .env file
from the root of your project into environment variables. It is designed for use in
projects that do not already make use of a .env file.
Quick Start
Simple run composer require DivineOmega/dotenv-loader to install.
You'll then be able to create a .env file in your project's root directory
(in the same location as your composer.json file). Any variables in the
.env file can then be accessed in any way you wish, such as using PHP's built-in
getenv function.
For an actual example of how to use dotenv-loader, see the test directory.
统计信息
- 总下载量: 23.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2017-01-13