phalcon / incubator-config
Phalcon Incubator Config Adapters
Fund package maintenance!
phalcon
Open Collective
Requires
- php: >=7.4
- ext-phalcon: ^5.0.0beta
Requires (Dev)
- codeception/codeception: ^4.1
- codeception/module-asserts: ^1.0.0
- phalcon/ide-stubs: ^4.1
- phpstan/phpstan: ^0.12.18
- squizlabs/php_codesniffer: ^3.5
- vimeo/psalm: ^4.1
Suggests
- ext-simplexml: Need to run in XML Config Adapter
This package is auto-updated.
Last update: 2024-10-19 22:37:40 UTC
README
XML Adapter
Reads xml files and converts them to Phalcon\Config objects.
Given the next configuration file:
<root> <phalcon> <baseuri>/phalcon/</baseuri> </phalcon> <models> <metadata>memory</metadata> </models> <nested> <config> <parameter>here</parameter> </config> </nested> </root>
You can read it as follows:
use Phalcon\Incubator\Config\Adapter\Xml; $config = new Xml('path/config.xml'); echo $config->phalcon->baseuri; echo $config->nested->config->parameter;