roots / wp-config
Collect configuration values and safely define() them
Fund package maintenance!
roots
Installs: 5 365 409
Dependents: 84
Suggesters: 0
Security: 0
Stars: 52
Watchers: 12
Forks: 9
Open Issues: 5
Requires
- php: >=5.6
Requires (Dev)
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^5.7
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2024-10-18 10:36:07 UTC
README
Config::define('WP_DEBUG_DISPLAY', false); Config::define('WP_DEBUG_DISPLAY', true); Config::apply(); echo WP_DEBUG_DISPLAY; // true
\Roots\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 test
run the full test suite from php to 7.1 to 7.4make test-fast
run php 7 testsmake test-coverage
generate an html test coverage report in./coverage