cakephp/core
CakePHP Framework Core classes
Maintainers
5.4.0-RC1
2026-04-04 07:25 UTC
Requires
- php: >=8.2
- cakephp/utility: 5.4.*@dev
- league/container: ^5.1
- psr/container: ^1.1 || ^2.0
Requires (Dev)
None
Suggests
- cakephp/cache: To use Configure::store() and restore().
- cakephp/event: To use PluginApplicationInterface or plugin applications.
- league/container: To use Container and ServiceProvider classes
Provides
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-06-09 03:16:13 UTC
README
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
