定制 roots/wp-config 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

roots/wp-config

最新稳定版本:1.0.0

Composer 安装命令:

composer require roots/wp-config

包简介

Collect configuration values and safely define() them

README 文档

README

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

统计信息

  • 总下载量: 7.13M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 54
  • 点击次数: 2
  • 依赖项目数: 91
  • 推荐数: 0

GitHub 信息

  • Stars: 51
  • Watchers: 8
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04