bear/dotenv
最新稳定版本:1.1.0
Composer 安装命令:
composer require bear/dotenv
包简介
Dotenv utility for BEAR.Sunday
README 文档
README
Loads environment variables from .env to $_ENV and $_SERVER.
Installation
Installation is via Composer:
composer require bear/dotenv
Usage
use BEAR\Dotenv\Dotenv; (new Dotenv)->load($dir);
If the .env.dist file exists in the $dir directory, environment variables are created from it. If you customize locally, the .env file is loaded first.
If neither file is present, nothing is done. In that case, the environment variables must be provided by means other than the dotenv library.
.env.distが$dirディレクトリにあれば読み込まれ環境変数が作られます。ローカルでカスタマイズする場合には.envを用意すれば優先して読み込まれます。
どちらのファイルも無ければ何もしません。その場合、環境変数はdotenvライブラリ以外の方法で用意されなければなりません。
统计信息
- 总下载量: 195.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-24