onepress / wp-config
Collect configuration values and safely define() them
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/onepress/wp-config
Requires
- php: >=7.1
Requires (Dev)
- php-coveralls/php-coveralls: ^2.2
- phpunit/phpunit: ^7.5
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.5
README
Config::define('WP_DEBUG_DISPLAY', false); Config::define('WP_DEBUG_DISPLAY', true); Config::apply(); echo WP_DEBUG_DISPLAY; // true
\Onepress\WPConfig
Requirements
This library requires PHP 7.1+. If you need PHP 5.6 support: use [1.0.0].
Tests
Just run make to do everything
We use PHPUnit 7 because it has compatibility for PHP 7.1
There are 3 test commands
make testrun the full test suite from php to 7.1 to 7.4make test-fastrun php 7 testsmake test-coveragegenerate an html test coverage report in./coverage