appserver-io / configuration
Provides basic functionality to handle XML data in a tree structure, like SimpleXML does.
Installs: 7 382
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 3
Open Issues: 0
Requires
- php: >=5.4.0
Requires (Dev)
- appserver-io/build: ~1.0
README
Introduction
This package provides generic XML handling functionality, designed to work in an application server like appserver.io. The configuration contains the XML structure in a simple object structure that makes it synchronziable between threads.
Issues
In order to bundle our efforts we would like to collect all issues regarding this package in the main project repository's issue tracker.
Please reference the originating repository as the first element of the issue title e.g.:
[appserver-io/<ORIGINATING_REPO>] A issue I am having
Usage
As described in the introduction the configuration is originally designed to work in a runtime environment like appserver.io provides it. The big advantage is, that it does not contain any not synchronizable instances which allows you to share it between threads.
The configuration needs a XML file, the structure is not important, and converts it into an object structure:
// initialize the configuration with the content XML configuration file $configuration = new Configuration(); $configuration->initFromFile('/your/file.xml'); // add a new node XML to the root node $configuration->addChildWithNameAndValue('baseDirectory', '/application/base/directory');
External Links
- Documentation at appserver.io