定制 codebot/phpenv 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

codebot/phpenv

最新稳定版本:1.0.4

Composer 安装命令:

composer require codebot/phpenv

包简介

Class for storing and reading environment variables from .env file stored in document root.

README 文档

README

Class for storing and reading environment variables from ".env" file.

Installation

To install the package using composer run composer require codebot/phpenv:1.0.*

Usage

You need to create the ".env" file in your project root and define your environment variables there.
Project root is the directory returned by $_SERVER['DOCUMENT_ROOT'] variable.
If you want to store the .env file somewhere else, you can pass the full path of your .env file as a first argument of getInstance() method, e.g. Env\Core\Env::getInstance( '/path/to/.env' ).

Example of the .env file:

# Test .env file
APP_NAME=The Phpenv Package
APP_ENV=local

Example of the usage:

$env = Env\Env::getInstance();

$env->get('APP_ENV');

统计信息

  • 总下载量: 553
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固