Skip to content

PHPPlatform/config

Repository files navigation

PHP Platform Configuration

This package provides uniform APIs for configuring package specific settings in PHP Platform

Build Status

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');

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages