PatrickLouys / no-framework-tutorial

A small tutorial to show how to create a PHP application without a framework.
MIT License
1.53k stars 188 forks source link

Environment/Config #20

Open PatrickLouys opened 9 years ago

PatrickLouys commented 9 years ago

See https://github.com/PeeHaa/OpCacheGUI/blob/master/init.deployment.php https://github.com/PeeHaa/OpCacheGUI/blob/master/init.example.php

both in gitignore

phillipsharring commented 7 years ago

I'm a fan of dotenv w/ a .env file. It's becoming popular. That combined with a Config interface/implementation which read config files from a config folder and rolled it all up. An injector delegate could be used to start up dotenv - or not if someone didn't want to use that... Just some thoughts.