Skip to content
This repository has been archived by the owner on Oct 20, 2019. It is now read-only.
/ phpnotenv Public archive

"Fork" of lucasv/phpdotenv enabling custom way of setting environment variables.

Notifications You must be signed in to change notification settings

cibulka/phpnotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Why?

According to creator of awesome Phpdotenv, the library was never meant to be used in production. I, however, would like to that to maintain the separation of config from code and to keep my development workflow as close to production as possible.

A lot of shared hostings (including mine) does not allow putenv function due to security, so I had to have my way of getting/setting superglobals with Phpdotenv. But as most of that is hardcoded to Phpdotenv, the easiest way I could think of was to write a light wrapper around the methods in question to allow custom callbacks.

Consider this library deprecated anytime the owner of Phpdotenv incorporates similar functionality.

What is this used for?

More info about Phpdotenv at the original repo: Phpdotenv

Installation

composer install cibulka/phpnotenv

Commit test.

About

"Fork" of lucasv/phpdotenv enabling custom way of setting environment variables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages