CakePHP Framework Core classes

Installs: 15 934 726

Dependents: 26

Suggesters: 0

Security: 0

Stars: 59

Watchers: 24

Forks: 6

5.0.7 2024-03-13 17:13 UTC

This package is auto-updated.

Last update: 2024-04-06 02:37:07 UTC


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.


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

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

Configure::write('','Pizza, Inc.');
Configure::read(''); // 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');


Please make sure you check the official documentation