shopsys / sysconfig
System configuration for Shopsys
1.1.0
2014-08-05 09:51 UTC
Requires
- php: >=5.3.0
- psr/log: ~1.0
- shopsys/sysstdlib: dev-master
Requires (Dev)
- php: >=5.3.0
Suggests
- svenanders/sarrandomwords: Create Silly Sentences
This package is not auto-updated.
Last update: 2024-11-05 03:22:29 UTC
README
###More info
How to use
In your composer.json, add the following line
"shopsys/php-shopsys-sysconfig": "dev-master"
In your code, include the class:
use SysConfig/SysConfig;
(or use composer's autoloader)
and then in your functions, use it like this:
$this->config = $SysConfig->getConfig();
this will populate $this->config with the config values from your config-directory
Protip
Copy config/sysconfig.global.php.dist to your projects config/autoload/sysconfig.local.php and set your config values
Tests:
execute phpunit vendor/shopsys/sysconfig/tests/ from the root of your project to run the tests
#####License:
Sven Anders Robbestad (C) 2014