php-platform / config
Installs: 2 772
Dependents: 8
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/php-platform/config
Requires
- php: >=5.3
- php-platform/json-cache: ~0.1
Requires (Dev)
- phpunit/phpunit: ~4.8
This package is not auto-updated.
Last update: 2025-10-26 01:27:44 UTC
README
This package provides uniform APIs for configuring package specific settings in PHP Platform
Usage
- add a file named config.json in the root of the package
- to read a setting use
PhpPlatform\Config\Settings::getSettings($package,$setting)
where $package is package name and $setting is a required setting
Example
config.json in package named phpplatform/mypackage
{
"logs":{
"error":"/logs/error.log",
"debug":"/logs/debug.log"
}
}
to read logs.error
PhpPlatform\Config\Settings::getSettings('phpplatform/mypackage','logs.error');