thetminnhtun/dotenv
Composer 安装命令:
composer require thetminnhtun/dotenv
包简介
Enviroment variable for php developement
关键字:
README 文档
README
Enviroment variable for PHP development
Installation with Composer
composer require thetminnhtun/dotenv
Usage
- Create
.envfile and write following code
APP_NAME=ProjectName
APP_ENV=local
APP_URL=http://localhost
- Create
index.phpfile and write following code
<?php include 'vendor/autoload.php'; dotenv(); echo env('APP_NAME');
- install
dovenvpackage by following command
composer require thetminnhtun/dotenv
- done!
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-25