voronkovich / wp-config

Bedrock's failsafe wp-config

Home Page:https://github.com/roots/wp-config/blob/master/docs/why.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wp-config

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

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

PHPUnit Docs

There are 3 test commands

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

About

Bedrock's failsafe wp-config

https://github.com/roots/wp-config/blob/master/docs/why.md

License:MIT License


Languages

Language:PHP 82.5%Language:Makefile 17.5%