shopsys/sysconfig

System configuration for Shopsys

Installs: 14

Dependents: 0

Suggesters: 3

Security: 0

Stars: 0

Watchers: 1

Forks: 1

pkg:composer/shopsys/sysconfig

1.1.0 2014-08-05 09:51 UTC

This package is not auto-updated.

Last update: 2025-10-21 08:14:56 UTC


README

###More info

http://blog.robbestad.com

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

CC BY