An open API service indexing awesome lists of open source software.

https://github.com/phalcon/incubator-config


https://github.com/phalcon/incubator-config

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# Phalcon\Incubator\Config

[![Discord](https://img.shields.io/discord/310910488152375297?label=Discord)](http://phalcon.io/discord)
[![Packagist Version](https://img.shields.io/packagist/v/phalcon/incubator-config)](https://packagist.org/packages/incubator-config)
[![PHP from Packagist](https://img.shields.io/packagist/php-v/phalcon/incubator-config)](https://packagist.org/packages/phalcon/incubator-config)
[![codecov](https://codecov.io/gh/phalcon/incubator-config/branch/master/graph/badge.svg)](https://codecov.io/gh/phalcon/incubator-config)
[![Packagist](https://img.shields.io/packagist/dd/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;
```