Download the PHP package afischoff/ruby-env-to-php without Composer
On this page you can find all versions of the php package afischoff/ruby-env-to-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download afischoff/ruby-env-to-php
More information about afischoff/ruby-env-to-php
Files in afischoff/ruby-env-to-php
Download afischoff/ruby-env-to-php
More information about afischoff/ruby-env-to-php
Files in afischoff/ruby-env-to-php
Vendor afischoff
Package ruby-env-to-php
Short Description Allows a PHP codebase to use an existing Ruby ".env" configuration file. This allows both codebases to share the same configuration.
License MIT
Package ruby-env-to-php
Short Description Allows a PHP codebase to use an existing Ruby ".env" configuration file. This allows both codebases to share the same configuration.
License MIT
Please rate this library. Is it a good library?
Informations about the package ruby-env-to-php
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.
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');All versions of ruby-env-to-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=4.1.0
The package afischoff/ruby-env-to-php contains the following files
Loading the files please wait ...