https://github.com/cakephp/core
[READ-ONLY] CakePHP Framework Core Classes. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp
https://github.com/cakephp/core
Last synced: 7 months ago
JSON representation
[READ-ONLY] CakePHP Framework Core Classes. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp
- Host: GitHub
- URL: https://github.com/cakephp/core
- Owner: cakephp
- License: other
- Created: 2014-09-10T18:29:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-06-21T03:33:36.000Z (7 months ago)
- Last Synced: 2025-06-21T04:29:35.459Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 16.6 MB
- Stars: 60
- Watchers: 24
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://packagist.org/packages/cakephp/core)
[](LICENSE.txt)
# 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:
```php
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:
```php
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:
```php
Configure::dump('my_config', 'default');
```
## Documentation
Please make sure you check the [official documentation](https://book.cakephp.org/4/en/development/configuration.html)