roots/wordpress-core-installer

A Composer custom installer to handle installing WordPress as a dependency

Maintainers

Package info

github.com/roots/wordpress-core-installer

Type:composer-plugin

pkg:composer/roots/wordpress-core-installer

Fund package maintenance!

roots

Statistics

Installs: 15 541 404

Dependents: 38

Suggesters: 0

Stars: 38

Open Issues: 0

v4.0.0 2026-03-22 03:17 UTC

README

Tests Packagist Downloads GitHub tag Follow Roots Sponsor Roots

Note

This is a fork of johnpbloch/wordpress-core-installer with fixes to enhance compatibility with roots/wordpress.

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) 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). 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 using Composer with WordPress, check out our Composer WordPress resources. Use WP Packages to install WordPress plugins and themes via Composer, and see the roots/wordpress documentation for WordPress core installation options.

Support us

Roots is an independent open source org, supported only by developers like you. Your sponsorship funds WP Packages and the entire Roots ecosystem, and keeps them independent. Support us by purchasing Radicle or sponsoring us on GitHub — sponsors get access to our private Discord.

Requirements

  • Composer 2+
  • PHP 7.2.24+

Composer 2 requires explicitly allowing plugins. If needed, run:

composer config --no-plugins allow-plugins.roots/wordpress-core-installer true

Community

Keep track of development and community news.