roots/wp-config

Collect configuration values and safely define() them

1.0.0 2018-08-10 14:18 UTC

README

Build Status Coverage Status

Config::define('WP_DEBUG_DISPLAY', false);

Config::define('WP_DEBUG_DISPLAY', true);

Config::apply();

echo WP_DEBUG_DISPLAY;
// true

Why?

\Roots\WPConfig

Tests

Just run make to do everything

We use PHPUnit 5 because it has compatibility for PHP 5.6

PHPUnit Docs

There are 3 test commands

  • make test run the full test suite from php 5.6 to 7.x
  • make test-fast run php 7 tests
  • make test-coverage generate an html test coverage report in ./coverage