Mark Story b2ebce1cb4 Merge branch '3.next' of github.com:cakephp/cakephp into 3.next 8 years ago
..
Configure d71a990dd6 Pull in the relevant examples from the API 8 years ago
Exception a41e63ea6c Add the $previous argument to all exceptions 8 years ago
App.php 3a6bd75832 Use HTTPS for the opensource.org URL 8 years ago
ClassLoader.php 3a6bd75832 Use HTTPS for the opensource.org URL 8 years ago
Configure.php 585d509a09 Added configurable default value 8 years ago
ConsoleApplicationInterface.php b01aa36991 Split Application interface into console/web 8 years ago
ConventionsTrait.php 3a6bd75832 Use HTTPS for the opensource.org URL 8 years ago
HttpApplicationInterface.php 62dbf83442 Add __invoke method to the HttpApplicationInterface. 8 years ago
InstanceConfigTrait.php 47f2a3cff9 Add support for default value to InstanceConfigTrait::getConfig(). 8 years ago
LICENSE.txt c61ab5ee95 Use HTTPS for the cakefoundation.org URL 8 years ago
ObjectRegistry.php 668c087398 Merge branch 'master' into 3.next 8 years ago
Plugin.php 47bbb660dc Merge pull request #10711 from cakephp/3next-plugin-routes 8 years ago
README.md fe1d812c89 Update URL in *.md, *.json 9 years ago
StaticConfigTrait.php 91475ccfa5 Fix parseDsn() ignoring empty strings 8 years ago
composer.json d14ce62984 Use caret operator in composer.json for all sub packages 8 years ago
functions.php 62314dcbb7 Address feedback from review. 8 years ago

README.md

Total Downloads License

CakePHP Core Classes

A set of classes used for configuration files reading and storing. This repository contains the classes that are used as glue for creating the CakePHP framework.

Usage

You can use the Configure class to store arbitrary configuration data:

use Cake\Core\Configure;
use Cake\Core\Configure\Engine\PhpConfig;

Configure::write('Company.name','Pizza, Inc.');
Configure::read('Company.name'); // Returns: 'Pizza, Inc.'

It also possible to load configuration from external files:

Configure::config('default', new PhpConfig('/path/to/config/folder'));
Configure::load('app', 'default', false);
Configure::load('other_config', 'default');

And Write the configuration back into files:

Configure::dump('my_config', 'default');

Documentation

Please make sure you check the official documentation