PHPackages                             aubreypwd/wp-config-common - 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. aubreypwd/wp-config-common

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

aubreypwd/wp-config-common
==========================

Common configurations I plug into wp-config.php for WordPress.

1.2.1(3y ago)03MITPHP

Since Jul 12Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Use
===

[](#use)

```
composer require aubreypwd/wp-config-common
```

Then, add to your `wp-config.php`:

```
if ( file_exists(  __DIR__ . '/vendor/autoload.php' ) ) {
	require_once  __DIR__ . '/vendor/autoload.php';
}
```

Enabling Configs
----------------

[](#enabling-configs)

You must define this *before* you require `autoload.php` above!

```
define( 'WP_CONFIG_COMMON', 'max-execution-3600, multisite, spatie-ray, tunnel, noemail, mailhog' );
```

### `max-execution-3600`

[](#max-execution-3600)

Simply tries to set `max_execution_time` to one hour (for debugging, etc).

### `install-multisite`

[](#install-multisite)

Use this before `multisite` if you have not installed multisite into the database yet. After turning this on, head to `/wp-admin/network.php` and install multisite. When done, you can use `multisite` to turn multisite on and off again easily.

- If you don't specify `SUBDOMAIN_INSTALL` we assume `false` for you.
- If you don't specify `DOMAIN_CURRENT_SITE`, we assume `$_SERVER['HTTP_HOST']`

### `multisite`

[](#multisite)

Configures multisite (note use `install-multisite` first.

### `spatie-ray`

[](#spatie-ray)

Pushes all Warnings and Errors from PHP to Spatie Ray(tm).

Set `define( 'SPATIE_RAY_NO_WARNINGS', true )'` to stop warnings. Set `define( 'SPATIE_RAY_NO_ERRORS', true )'` to stop errors.

### `tunnel`

[](#tunnel)

Tries to automatically trick WordPress into thinking the website (single-site only, the the way) is the proxy. Works with `localtunnel` and `ngrock`.

### `no-email`

[](#no-email)

Stops `wp_mail` from working by overriding the function. You can define `WP_MAIL_RETURN` with the overridden function's return value, which is `false` by default.

### `mailhog`

[](#mailhog)

Forwards all email to Mailhog at `localhost` (change with `MAILHOG_HOST`) on Port `1025` (change with `MAILHOG_PORT`).

You can also use `MAILHOG_FROM_EMAIL`, `MAILHOG_FROM_NAME`, and `MAILHOG_AUTH`, to further configure.

*Note, will override `no-email`.* Works by overriding `wp_mail()`.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Every ~3 days

Total

4

Last Release

1390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c858a06465595fdc35033f1e9edc77627794753c383a97c281e54a813a52d670?d=identicon)[aubreypwd](/maintainers/aubreypwd)

---

Top Contributors

[![aubreypwd](https://avatars.githubusercontent.com/u/1753298?v=4)](https://github.com/aubreypwd "aubreypwd (10 commits)")

### Embed Badge

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

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

###  Alternatives

[botman/botman

Create messaging bots in PHP with ease.

6.2k1.5M97](/packages/botman-botman)[spatie/url

Parse, build and manipulate URL's

73914.3M97](/packages/spatie-url)[spatie/ssl-certificate

A class to easily query the properties of an ssl certificate

7414.8M35](/packages/spatie-ssl-certificate)[spatie/dns

Retrieve DNS records

6082.3M17](/packages/spatie-dns)[utopia-php/messaging

A simple, light and advanced PHP messaging library

23187.5k4](/packages/utopia-php-messaging)[genxbe/kirby-ray

Helper tool that enables ray on all the extendable methods.

232.2k](/packages/genxbe-kirby-ray)

PHPackages © 2026

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