承接 bear/dotenv 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

bear/dotenv

最新稳定版本:1.1.0

Composer 安装命令:

composer require bear/dotenv

包简介

Dotenv utility for BEAR.Sunday

README 文档

README

Scrutinizer Code Quality Build Status Build Status

Loads environment variables from .env to $_ENV and $_SERVER.

Installation

Installation is via Composer:

composer require bear/dotenv

Usage

use BEAR\Dotenv\Dotenv;

(new Dotenv)->load($dir);

If the .env.dist file exists in the $dir directory, environment variables are created from it. If you customize locally, the .env file is loaded first. If neither file is present, nothing is done. In that case, the environment variables must be provided by means other than the dotenv library.

.env.dist$dirディレクトリにあれば読み込まれ環境変数が作られます。ローカルでカスタマイズする場合には.envを用意すれば優先して読み込まれます。 どちらのファイルも無ければ何もしません。その場合、環境変数はdotenvライブラリ以外の方法で用意されなければなりません。

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-24