rotexsoft / slim-skeleton-mvc-app

This is a template web-application (powered by SlimPHP), that can be extended to build more complex web applications.
BSD 3-Clause "New" or "Revised" License
38 stars 8 forks source link

Incorporate vance lucas' dotenv package for feeding environment variables to configuration files #3

Closed rotexdegba closed 7 years ago

rotexdegba commented 7 years ago

Incorporate vance lucas' dotenv (https://github.com/vlucas/phpdotenv) package for feeding environment variables for configuration

rotexdegba commented 7 years ago

Re-organized app structure to exclude ./config/app-settings.php from git version control by default. Also added documentation recommending that ./config/app-settings.php be configured uniquely per environment and ./config/app-settings-dist.php be used as a template file for creating ./config/app-settings.php in each new environment.

./config/app-settings-dist.php should be version controlled, and it should contain dummy values for sensitive application settings like database connection credentials.

No need for dotenv anymore. Users can use ./config/app-settings.php to store environment specific settings. ./config/app-settings.php should no longer be version controlled in applications developed using this framework, rather ./config/app-settings-dist.php should be used as a template for creating ./config/app-settings.php in each new environment an application should be deployed to.