afischoff/ruby-env-to-php
Composer 安装命令:
composer require afischoff/ruby-env-to-php
包简介
Allows a PHP codebase to use an existing Ruby ".env" configuration file. This allows both codebases to share the same configuration.
README 文档
README
Allows a PHP codebase to use an existing Ruby ".env" configuration file. This allows both codebases to share the same configuration.
Usage:
<?php
use Afischoff\RubyEnvToPhp;
require ('src/Afischoff/RubyEnvToPhp.php');
// load Ruby .env file
RubyEnvToPhp::load('../path/to/ruby/codebase/.envFile');
// convert DB connection string to Laravel/Lumen DB environment variables
RubyEnvToPhp::splitDbStringToVars($_ENV['DATABASE_URL'], 'mysql');
Adding to Laravel / Lumen: Toward the top of "bootstrap/app.php":
\Afischoff::RubyEnvToPhp::load('../path/to/ruby/codebase/.envFile');
统计信息
- 总下载量: 650
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-24