An easy way to manage local/development/production configuration files (database connections, etc.) in PHP projects.
-
Clone this repo outside of your PHP project directory.
-
Put your local configuration inside of local.config.php
-
Put your development configuration inside of development.config.php
-
Put your production configuration inside of production.config.php
-
Follow the inline instructions in config.php
-
Copy all four files to your working directory wherever your PHP project's configuration file is located.
-
If necessary in your environment, tell version control to ignore some/all of the configuration files.