PHPackages                             moox/wordpress-core-installer - 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. moox/wordpress-core-installer

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

moox/wordpress-core-installer
=============================

A Composer custom installer to handle installing WordPress as a dependency

4.0.0(9mo ago)11GPL-2.0-or-laterPHPPHP &gt;=8.3CI passing

Since Oct 7Pushed 9mo agoCompare

[ Source](https://github.com/mooxphp/wordpress-core-installer)[ Packagist](https://packagist.org/packages/moox/wordpress-core-installer)[ RSS](/packages/moox-wordpress-core-installer/feed)WikiDiscussions master Synced today

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

WordPress Core Installer
========================

[](#wordpress-core-installer)

[![Tests](https://github.com/mooxphp/wordpress-core-installer/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/mooxphp/wordpress-core-installer/actions/workflows/tests.yml)[![License: GPL v2](https://camo.githubusercontent.com/77e900ae34f8da9ccccc42662fce61a94ab07ddbfe3f7d066178e824f3673dbd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076322d626c75652e737667)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)[![Packagist](https://camo.githubusercontent.com/733b0c6bdb449f204a2e02c316c58651ef028db57412e34ce644697677eb2d1d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6f782f776f726470726573732d636f72652d696e7374616c6c65722e737667)](https://packagist.org/packages/roots/wordpress-core-installer)[![GitHub tag](https://camo.githubusercontent.com/a5edbeed885c896d795a7578d40550b2dd14f9e91d2354eb707e2bf3bc3f6256/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6d6f6f787068702f776f726470726573732d636f72652d696e7374616c6c65722e737667)](https://camo.githubusercontent.com/a5edbeed885c896d795a7578d40550b2dd14f9e91d2354eb707e2bf3bc3f6256/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6d6f6f787068702f776f726470726573732d636f72652d696e7374616c6c65722e737667)

*This is a fork of [roots/wordpress-core-installer](https://github.com/roots/wordpress-core-installer) with some fixes to enhance compatibility with [moox/press](https://packagist.org/packages/moox/press)*

A custom Composer plugin to install WordPress core outside of `vendor`.

This installer is meant to support a rather specific WordPress installation setup in which WordPress is installed in a subdirectory ([see the WordPress codex on that subject](https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)) and in which the location of `WP_CONTENT_DIR` and `WP_CONTENT_URL` have been customized to be outside of WordPress core ([see the WordPress codex on that subject](https://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content_folder)). This is because composer will delete your whole wp-content directory every time it updates core if you don't separate the two. If that installation setup isn't what you are looking for, then this installer is probably not something you will want to use.

For more information on this site setup and using Composer to manage a whole WordPress site, [check out @Rarst's informational website](https://composer.rarst.net/) which also includes [a site stack example using this package](https://composer.rarst.net/recipe/site-stack/).

### Usage

[](#usage)

To set up a custom WordPress build package to use this as a custom installer, add the following to your package's composer file:

```
"type": "wordpress-core",
"require": {
	"moox/wordpress-core-installer": "^3.0"
}
```

By default, this package will install a `wordpress-core` type package in the `wordpress` directory. To change this you can add the following to either your custom WordPress core type package or the root composer package:

```
"extra": {
	"wordpress-install-dir": "public/wp"
}
```

This works not only in the project's composer.json but also in a package's composer.json, the reason for the fork, and we default to `public/wp`.

The root composer package can also declare custom paths as an object keyed by package name:

```
"extra": {
	"wordpress-install-dir": {
		"wordpress/wordpress": "wordpress",
		"roots/wordpress-core": "roots-wordpress"
	}
}
```

### License

[](#license)

This is licensed under the GPL version 2 or later.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance58

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.3% 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

270d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40421928?v=4)[Alf Drollinger](/maintainers/adrolli)[@adrolli](https://github.com/adrolli)

---

Top Contributors

[![johnpbloch](https://avatars.githubusercontent.com/u/446833?v=4)](https://github.com/johnpbloch "johnpbloch (65 commits)")[![adrolli](https://avatars.githubusercontent.com/u/40421928?v=4)](https://github.com/adrolli "adrolli (16 commits)")[![austinpray](https://avatars.githubusercontent.com/u/2192970?v=4)](https://github.com/austinpray "austinpray (7 commits)")[![retlehs](https://avatars.githubusercontent.com/u/115911?v=4)](https://github.com/retlehs "retlehs (4 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (1 commits)")[![Ayesh](https://avatars.githubusercontent.com/u/811553?v=4)](https://github.com/Ayesh "Ayesh (1 commits)")[![jstoone](https://avatars.githubusercontent.com/u/1711456?v=4)](https://github.com/jstoone "jstoone (1 commits)")[![Rarst](https://avatars.githubusercontent.com/u/737584?v=4)](https://github.com/Rarst "Rarst (1 commits)")

---

Tags

wordpress

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/moox-wordpress-core-installer/health.svg)

```
[![Health](https://phpackages.com/badges/moox-wordpress-core-installer/health.svg)](https://phpackages.com/packages/moox-wordpress-core-installer)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M1.0k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5445.2M565](/packages/drupal-core-composer-scaffold)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

576.1M127](/packages/automattic-jetpack-autoloader)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1465.4M62](/packages/mnsami-composer-custom-directory-installer)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[sandersander/composer-link

Adds ability to link local packages for development with composer

98457.9k](/packages/sandersander-composer-link)

PHPackages © 2026

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