zrcing/phpenv 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zrcing/phpenv

最新稳定版本:v1.0.0

Composer 安装命令:

composer require zrcing/phpenv

包简介

Easy to load system enivronment configuration from $_ENV,$_SERVER,getenv.

README 文档

README

Easy to load system enivronment configuration from $_ENV,$_SERVER,getenv. ##Installation Insstall the lastest version with

$ composer require zrcing/phpenv

or

{
	"name" : "project name",
	"repositories" : [ {
		"type" : "composer",
		"url" : "https://packagist.org/"
	}],
	"require": {
		"zrcing/phpenv": "~1.0"
	}
}

##Demo ###Step 1: Created .env file

#Master database
DB_HOST = '127.0.0.1' #Local database
DB_NAME="db_name"
DB_USER="root"
DB_PWD="root"
DB_PORT=3306

#Slave database 1
DB_SLAVE1_HOST="127.0.0.1"
DB_SLAVE1_NAME="db_name"
DB_SLAVE1_USER="root"
DB_SLAVE1_PWD="root"
DB_SLAVE1_PORT=3306

###Step 2: Usage use Phpenv\Env;

$envFile = realpath(".env");
Env::load($envFile);

print_r($_ENV);
print_r($_SERVER);

License

Released under the MIT license.

统计信息

  • 总下载量: 165
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固