2017 © Pedro Peláez
 

library 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.

image

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.

  • Friday, January 15, 2016
  • by afischoff
  • Repository
  • 1 Watchers
  • 0 Stars
  • 402 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

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., (*1)

Usage:, (*2)

<?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":, (*3)

\Afischoff::RubyEnvToPhp::load('../path/to/ruby/codebase/.envFile');

The Versions

15/01 2016

dev-master

9999999-dev

Allows a PHP codebase to use an existing Ruby ".env" configuration file. This allows both codebases to share the same configuration.

  Sources   Download

MIT

The Requires

  • php >=4.1.0

 

15/01 2016

1.4

1.4.0.0

Allows a PHP codebase to use an existing Ruby ".env" configuration file. This allows both codebases to share the same configuration.

  Sources   Download

MIT

The Requires

  • php >=4.1.0

 

17/12 2015

1.3

1.3.0.0

Allows a PHP codebase to use an existing Ruby ".env" configuration file. This allows both codebases to share the same configuration.

  Sources   Download

MIT

The Requires

  • php >=4.1.0

 

17/12 2015

1.2

1.2.0.0

Allows a PHP codebase to use an existing Ruby ".env" configuration file. This allows both codebases to share the same configuration.

  Sources   Download

MIT

The Requires

  • php >=4.1.0

 

14/12 2015

1.1

1.1.0.0

Allows a PHP codebase to use an existing Ruby ".env" configuration file. This allows both codebases to share the same configuration.

  Sources   Download

MIT

The Requires

  • php >=4.1.0

 

24/11 2015

1.0

1.0.0.0

Allows a PHP codebase to use an existing Ruby ".env" configuration file. This allows both codebases to share the same configuration.

  Sources   Download

MIT

The Requires

  • php >=4.1.0