PHPackages                             onepress/wp-config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. onepress/wp-config

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

onepress/wp-config
==================

Collect configuration values and safely define() them

v1.0.0(2y ago)016MITPHPPHP &gt;=7.1

Since May 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/oneweb-vn/wp-config)[ Packagist](https://packagist.org/packages/onepress/wp-config)[ RSS](/packages/onepress-wp-config/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

wp-config
=========

[](#wp-config)

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

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

Config::apply();

echo WP_DEBUG_DISPLAY;
// true
```

[Why?](./docs/why.md)

\\Onepress\\WPConfig
--------------------

[](#onepresswpconfig)

- [Config](./src/Config.php)
- Exceptions
    - [ConstantAlreadyDefinedException](./src/Exceptions/ConstantAlreadyDefinedException.php)
    - [UndefinedConfigKeyException](./src/Exceptions/UndefinedConfigKeyException.php)

Requirements
------------

[](#requirements)

This library requires PHP 7.1+. If you need PHP 5.6 support: use \[1.0.0\].

Tests
-----

[](#tests)

Just run `make` to do everything

We use PHPUnit 7 because it has compatibility for PHP 7.1

[PHPUnit Docs](https://phpunit.readthedocs.io/en/7.5/)

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`

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

745d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16c7b298273d76cebe4c4f544524e5789347abc5b0bb46fe7f491f60c38442f8?d=identicon)[onepress](/maintainers/onepress)

---

Top Contributors

[![onetechco](https://avatars.githubusercontent.com/u/78303085?v=4)](https://github.com/onetechco "onetechco (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/onepress-wp-config/health.svg)

```
[![Health](https://phpackages.com/badges/onepress-wp-config/health.svg)](https://phpackages.com/packages/onepress-wp-config)
```

###  Alternatives

[silverstripesk/silverstripe-disqus

Disqus module for SilverStripe CMS http://silverstripe.sk/clanky/disqus/

171.0k](/packages/silverstripesk-silverstripe-disqus)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
