2017 © Pedro PelĂĄez
 

cakephp-plugin cakephp-environment

CakePHP Environment Plugin. Manage multiple environments in your CakePHP application that differ in database setup, configuration settings (Configure) and custom feature flags.

image

frankfoerster/cakephp-environment

CakePHP Environment Plugin. Manage multiple environments in your CakePHP application that differ in database setup, configuration settings (Configure) and custom feature flags.

  • Saturday, November 18, 2017
  • by frankfoerster
  • Repository
  • 4 Watchers
  • 8 Stars
  • 1,083 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 7 Versions
  • 4 % Grown

The README.md

CakePHP 2.x Environment Plugin

Build Status, (*1)

Manage multiple environments in your CakePHP application that differ in:, (*2)

  • database setup
  • configuration settings (Configure)
  • custom feature flags

Requirements

  • PHP 5.3+
  • CakePHP 2.3+

1. What it does

The Environment plugin hooks into your bootstrap process to initialize the database configuration, configuration parameters and additional custom logic for different environments., (*3)

An environment is defined and detected either by a set of domains (e.g. www.domain.com, domain.com, domain.net) and optionally by the absolute app path on a server., (*4)

2. Install and use the plugin

  1. Clone || download the project || init the project as submodule in /app/Plugin/Environment.
  2. Copy the example configuration files from example/app/Config/Environment to app/Config/Environment
  3. Add the following lines to your app/Config/bootstrap.php, (*5)

    CakePlugin::load('Environment', array('bootstrap' => false, 'routes' => false);
    
    App::uses('Environments', 'Environment.Lib');
    Environments::init();
    
  4. To enable environment specific database configurations copy the database.php file from the example directory to app/Config/database.php OR make sure your existing database.php extends from BaseDatabaseConfig, e.g:, (*6)

    App::uses('BaseDatabaseConfig', 'Environment.Lib');
    
    class DATABASE_CONFIG extends BaseDatabaseConfig {
       ...
    }
    

3. Configuration

The configuration of your environments is managed with multiple files., (*7)

  • config.php is the global configuration file that is applied to all detected environments.
  • environment.{name}.php is a single environment file that contains the environment specific $dbSettings and $configure parameters.

Settings defined in an environment configuration file override the global configuration., (*8)

The Versions

18/11 2017

dev-cake3

dev-cake3 https://github.com/frankfoerster/cakephp-environment

CakePHP Environment Plugin. Manage multiple environments in your CakePHP application that differ in database setup, configuration settings (Configure) and custom feature flags.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

database configuration config cakephp environment setup configure

18/11 2017

v3.0.2

3.0.2.0 https://github.com/frankfoerster/cakephp-environment

CakePHP Environment Plugin. Manage multiple environments in your CakePHP application that differ in database setup, configuration settings (Configure) and custom feature flags.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

database configuration config cakephp environment setup configure

30/03 2017

dev-cake-3.4-support

dev-cake-3.4-support https://github.com/frankfoerster/cakephp-environment

CakePHP Environment Plugin. Manage multiple environments in your CakePHP application that differ in database setup, configuration settings (Configure) and custom feature flags.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

database configuration config cakephp environment setup configure

29/04 2016

v3.0.1

3.0.1.0 https://github.com/frankfoerster/cakephp-environment

CakePHP Environment Plugin. Manage multiple environments in your CakePHP application that differ in database setup, configuration settings (Configure) and custom feature flags.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

database configuration config cakephp environment setup configure

04/05 2015

v3.0.0

3.0.0.0 https://github.com/frankfoerster/cakephp-environment

CakePHP Environment Plugin. Manage multiple environments in your CakePHP application that differ in database setup, configuration settings (Configure) and custom feature flags.

  Sources   Download

MIT

The Requires

 

The Development Requires

database configuration config cakephp environment setup configure

04/03 2015

dev-master

9999999-dev https://github.com/frankfoerster/cakephp-environment

CakePHP Environment Plugin. Manage multiple environments in your CakePHP application that differ in database setup, configuration settings (Configure) and custom feature flags.

  Sources   Download

MIT

The Requires

 

database configuration config cakephp environment setup configure

04/03 2015

v1.0.0

1.0.0.0 https://github.com/frankfoerster/cakephp-environment

CakePHP Environment Plugin. Manage multiple environments in your CakePHP application that differ in database setup, configuration settings (Configure) and custom feature flags.

  Sources   Download

MIT

The Requires

 

database configuration config cakephp environment setup configure