Val Bancer afa8c3b20f Improve documentation in StaticConfigTrait 4 years ago
..
Configure 7c79b9e99c Backports from 4.next. 5 years ago
Exception 7c79b9e99c Backports from 4.next. 5 years ago
Retry 7c79b9e99c Backports from 4.next. 5 years ago
App.php 44a78128e7 Fix CS for easier 3.x/4.x comparison/merge. 6 years ago
BasePlugin.php 2b40e56493 Fix newlines around psr2 6 years ago
ClassLoader.php 7c79b9e99c Backports from 4.next. 5 years ago
Configure.php 4ba94440d0 Merge branch 'master' into 3.next 6 years ago
ConsoleApplicationInterface.php b01aa36991 Split Application interface into console/web 8 years ago
ConventionsTrait.php 2b40e56493 Fix newlines around psr2 6 years ago
HttpApplicationInterface.php 62dbf83442 Add __invoke method to the HttpApplicationInterface. 8 years ago
InstanceConfigTrait.php 2b54e89ca3 Attempt to please phpstan. 6 years ago
LICENSE.txt c61ab5ee95 Use HTTPS for the cakefoundation.org URL 8 years ago
ObjectRegistry.php 8c7d5bd964 Backport 4.next changes to 3.next 5 years ago
Plugin.php 06d1cec3a9 Fix docblocks see links. 5 years ago
PluginApplicationInterface.php 93f73c5456 Dynamically create plugin instances 7 years ago
PluginCollection.php 7c79b9e99c Backports from 4.next. 5 years ago
PluginInterface.php e0f469a198 Added missing @var tags and fixed @inheritDoc use. 5 years ago
README.md 11d85302e2 Improve wording, grammar, punctuation etc. 5 years ago
StaticConfigTrait.php afa8c3b20f Improve documentation in StaticConfigTrait 4 years ago
composer.json 77a5b67b89 Set max php version for split packages 5 years ago
functions.php 75849929a5 Escape another <pre> tag for api docs 5 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