env/dotenv
最新稳定版本:v2.0.0
Composer 安装命令:
composer require env/dotenv
包简介
A simple, tiny and lightweight PHP .env loader
关键字:
README 文档
README
A simple and tiny PHP .env loader, which does not inject values into $_ENV or OS.
Installation
composer require env/dotenv
Usage
The .env file should have a valid .ini syntaxis, supported by parse_ini_file.
This package does not inject values into global $_ENV or OS wia putenv() so it's up to you how you wan't proceed with parsed data.
Load
Parse .env and get values as array:
$env = \Env\Dotenv::toArray( path: '.env', strict: false, // by default: true );
If you need variables and fallback values, set strict to false
统计信息
- 总下载量: 639
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-15