morainstein/dotenv
最新稳定版本:1.0.0
Composer 安装命令:
composer require morainstein/dotenv
包简介
A simple lib for loading environment variables in PHP
README 文档
README
A simple way to use your environment variables in PHP
Getting Started
composer require morainstein/dotenv
use Morainstein\DotEnv; //You may also ommit the $envFilePath param, so it finds the .env in the working directory of application $dotenv = new DotEnv($envFilePath); //Just simple as it looks! $envValue = $dotenv->get('envKey')
Recomendation
Load the DotEnv class in your bootstrap file, then use it everywhere in your application
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-29