Add configuration file to your PHP Projects

https://github.com/vlucas/phpdotenv

For a while now, i've been using Symfony's YAML to add a configuration file on my PHP projects.

Today, i stumbled upon Vance Lucas's PHPDotEnv which is a great PHP package that will transfer the contents of a .env file right inside your PHP's $ENV variable. Available through <a title="PHP Composer" href="http://getcomposer.org" target="blank">Composer too.

Easiest method to add configuration files to your PHP projects ever!

Comments

Read Next

Magento(Varien lib) & PHP memory_limit -1 bug
30 August 2014
I am Kostas Bariotis, a web developer, a proud wanderer and a passionate doer. My mission is to write clean and efficient code, to solve problems on the Web and to learn something more. Read more about me or get in touch .