Composer with WordPress Resources
WordPress is a great CMS, but it doesn’t come with Composer support out of the box. Are looking to maintain your WordPress websites and applications like a professional? If so, take a look at some of our tools and packages:
The roots/wordpress
Composer package
composer require roots/wordpress
Number of roots/wordpress
installs:
13,187,315
Use the roots/wordpress
Composer package to install WordPress with Composer. This package is a mirror of the WordPress core files, so it’s always up to date with the latest WordPress release.
You can learn more about our WordPress Composer package from our blog posts:
- Updates to
roots/wordpress
Composer Package (2022-05-18) - Announcing the
roots/wordpress
Composer Package (2018-12-13)
Bedrock, our WordPress boilerplate
composer create-project roots/bedrock
Bedrock ships with a composer.json
file that includes the roots/wordpress
Composer package. It’s also configured with WordPress Packagist so that so any plugins from the WordPress.org plugin directory can easily be required:
composer require wpackagist-plugin/woocommerce
You can learn more about our managing WordPress with Composer from our blog and documentation:
- Bedrock Docs: Composer
- Using Composer with WordPress
- WordPress Plugins with Composer
- Private or Commercial WordPress Plugins as Composer Dependencies