Skip to content
Permalink
Browse files

Adding a Readme and composer.json to the Core namespace

  • Loading branch information...
lorenzo committed Sep 9, 2014
1 parent c42fe26 commit cf147788c82589a44aae496bc1e7d003cdb58905
Showing with 57 additions and 1 deletion.
  1. +2 −1 composer.json
  2. +34 −0 src/Core/README.md
  3. +21 −0 src/Core/composer.json
@@ -44,6 +44,7 @@
"cakephp/collection": "self.version",
"cakephp/event": "self.version",
"cakephp/validation": "self.version",
"cakephp/utility": "self.version"
"cakephp/utility": "self.version",
"cakephp/core": "self.version"
}
}
@@ -0,0 +1,34 @@
# 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.php', 'default', false);
Configure::load('other_config.php', 'default');
```

And Write the configuration back into files:

```php
Configure::dump('my_config.php', 'default');
```

## Documentation

Please make sure you check the [official documentation](http://book.cakephp.org/3.0/en/development/configuration.html)
@@ -0,0 +1,21 @@
{
"name": "cakephp/core",
"description": "CakePHP Framework Core classes",
"license": "MIT",
"authors": [
{
"name": "CakePHP Community",
"homepage": "http://cakephp.org"
}
],
"require": {
"cakephp/utility": "dev-master"
},
"autoload": {
"psr-4": {
"Cake\\Core\\": "."
},
"files": ["functions.php"]
},
"minimum-stability": "dev"
}

0 comments on commit cf14778

Please sign in to comment.
You can’t perform that action at this time.