previousnext / skpr-config
Reads skipper configuration files into environment variables.
Installs: 1 396
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: ~7.0
Requires (Dev)
- drupal/coder: ~8.2
- phpunit/phpunit: ~6.5
This package is auto-updated.
Last update: 2021-02-15 02:30:50 UTC
README
A simple utility for reading skpr config from a directory, and populating environment variables.
The default skpr config directory is /etc/skpr
Usage
$config = SkprConfig::create()->load();
$config->get('foo.bar')
Skipper config variables will be converted to uppercase, and dots are converted to underscores. For example:
getenv('FOO_BAR')
Testing
Run tests using the following:
bin/phpunit
Code Standards
Run code style checks with the following:
bin/phpcs