https://github.com/phalcon/incubator-config
https://github.com/phalcon/incubator-config
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phalcon/incubator-config
- Owner: phalcon
- License: bsd-3-clause
- Created: 2020-04-03T22:28:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T19:26:09.000Z (over 3 years ago)
- Last Synced: 2025-10-08T22:10:04.530Z (10 months ago)
- Language: PHP
- Size: 171 KB
- Stars: 4
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Phalcon\Incubator\Config
[](http://phalcon.io/discord)
[](https://packagist.org/packages/incubator-config)
[](https://packagist.org/packages/phalcon/incubator-config)
[](https://codecov.io/gh/phalcon/incubator-config)
[](https://packagist.org/packages/phalcon/incubator-config/stats)
## XML Adapter
Reads xml files and converts them to Phalcon\Config objects.
Given the next configuration file:
```xml
/phalcon/
memory
here
```
You can read it as follows:
```php
use Phalcon\Incubator\Config\Adapter\Xml;
$config = new Xml('path/config.xml');
echo $config->phalcon->baseuri;
echo $config->nested->config->parameter;
```