crazedsanity / siteconfig
XML/INI-based site configuration for PHP.
Installs: 164
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/crazedsanity/siteconfig
Requires
- crazedsanity/core: ^0.3
This package is not auto-updated.
Last update: 2025-10-18 03:44:02 UTC
README
XML/INI-based site configuration for PHP.
How do I use it?
Create an XML or INI file for your site's configuration. Values from one
section can be automatically used in other sections using place holders in the
form {SECTION/VALUE}.
The configuration can be loaded as constants or into the GLOBALS array simply by
calling a method, make_section_constants() and make_section_globals(),
respectively.
Special placeholders can be used as well. The following placeholders are supported:
{_DIRNAMEOFFILE_}(directory to the containing configuration file){_CONFIGFILE_}(full path to the containing configuration file){_THISFILE_}(same as DIRNAMEOFFILE){_APPURL_}(value of$_SERVER['SCRIPT_NAME'])