# Composer with WordPress Resources

Roots provides the tools and packages you need to manage WordPress with Composer — from WordPress core to plugins and themes.

## [WordPress core Composer packages](https://wp-packages.org/wordpress-core)

```
composer require roots/wordpress
```

Number of `roots/wordpress` installs:

17,267,049

Use the `roots/wordpress` Composer package to install WordPress core with Composer. This package is a mirror of the WordPress core files, so it’s always up to date with the latest WordPress release.

[GitHub View on GitHub](https://github.com/roots/wordpress)

## [Composer repository for WordPress plugins and themes](https://wp-packages.org/)

```
composer require wp-plugin/woocommerce
```

[WP Packages](https://wp-packages.org/) is a Composer repository for WordPress plugins and themes. Install any plugin or theme from the WordPress.org directory with Composer.

```
composer config repositories.wp-packages composer https://repo.wp-packages.org
```

[GitHub View on GitHub](https://github.com/roots/wp-packages)

## [WordPress with Composer Boilerplate](/bedrock/)

```
composer create-project roots/bedrock
```

Bedrock, our WordPress boilerplate, ships with a `composer.json` that includes `roots/wordpress` and is pre-configured with [WP Packages](https://wp-packages.org/), so any plugin or theme from the WordPress.org directory can easily be required.

## Why [`roots/wordpress`](https://github.com/roots/wordpress) over `johnpbloch/wordpress` ?

[`roots/wordpress`](https://github.com/roots/wordpress) is a modern, actively maintained for providing WordPress core packages via Composer. It offers clearer package options and faster release polling. [See how the packages are built.](https://github.com/roots/wordpress-packager)

|  | roots/wordpress | johnpbloch/wordpress |
|---|---|---|
| Packagist installs | 17,267,049 | 9,616,280 |
| Maintenance posture | Multi-repo package stack with active release automation:  - [`roots/wordpress`](https://github.com/roots/wordpress) - [`roots/wordpress-no-content`](https://github.com/roots/wordpress-no-content) - [`roots/wordpress-full`](https://github.com/roots/wordpress-full) - [`roots/wordpress-packager`](https://github.com/roots/wordpress-packager) | Single package line |
| Package options | - [`roots/wordpress-no-content`](https://github.com/roots/wordpress-no-content) — Lean default - [`roots/wordpress-full`](https://github.com/roots/wordpress-full) — Full build | Single full package |
| Pre-release availability | WordPress Beta/RC releases available | No available beta/RC releases |
| Release polling cadence | Every 10 minutes | Every 15 minutes |
| Release safeguards | Automated API-to-tag checks before package publishing | No published release verification checks |
| Build tooling | Packager is a tested PHP project with CI and release workflows | Build pipeline is a Bash workflow |

Learn more about managing WordPress with Composer:

- [WP Packages — Composer repository for WordPress plugins and themes](https://wp-packages.org/)
- [WP Packages vs WPackagist](https://wp-packages.org/wp-packages-vs-wpackagist)
- [WordPress core packages for Composer](https://wp-packages.org/wordpress-core)
- [Bedrock Docs: Composer](/bedrock/docs/composer/)
- [Using Composer with WordPress](/using-composer-with-wordpress/)
- [WordPress Plugins with Composer](/wordpress-plugins-with-composer/)
- [Private or Commercial WordPress Plugins as Composer Dependencies](/bedrock/docs/private-or-commercial-wordpress-plugins-as-composer-dependencies/)