Docs / / Installing WPMU DEV Plugins via Composer

6. Installing WPMU DEV Plugins via Composer

Written by Michelle Shull | Last updated: February 14, 2017

If you are the advanced developer type and like to manage your WP site via the Composer package manager WPMU DEV has full support for that! We are now publishing our own Composer repository.

You can also check out our blog post on using Composer with our plugins here.

6.1 Composer Integration Examples

Link to chapter 1

All packages are protected by basic auth with your API key as the username, you can leave password blank. All you have to do is add https://premium.wpmudev.org/ as a composer repository to your WP root Composer.json file. Here is an example of what you would need to add to your Composer.json file to install the latest version of Spirit theme and MarketPress plugin:

Package names use the url slug of the project as found in our listings https://premium.wpmudev.org/projects/category/plugins/, not necessarily the folder name.

Here is a little example of calling “composer update” after adding our repo and some packages.

composer-test

After entering your API key once, Composer will prompt you to save it in a private location, which is fine. Please note that it’s highly recommended not to save your API Key into Composer.json, as that is often published and publicly accessible which is a violation of our TOS. So if you save it make sure it’s in the proper auth.json file which is excluded from public repos.

The WPMU DEV repo also has some basic dependency management, for example adding wpmudev/luke-sara theme will automatically install the required wpmudev/upfront parent theme, or a BuddyPress plugin will require buddypress/buddypress package from packagist.

Join WPMU DEV to get everything you need
for WordPress, on unlimited sites, for one low price.

Security - Performance - Themes - 100+ Plugins - Backups - Marketing & SEO - Expert WP Support

WPMU DEV Heroes
Get help and support for ANY WordPress problem for FREE

Want expert help and support for ANY WordPress issue for free?

Sign up for a free trial now and let us help you out!

No obligation and super easy to cancel.

100+ PREMIUM PLUGINS & THEMES FOR FREE?

That's right! A WPMU DEV membership gives you access to 100+ premium plugins & themes, 24/7 WordPress support, a whole bunch of cool services and a private community of awesome WordPress developers.

Try a WPMU DEV membership today, completely for free, no obligation!

No thanks

Awesome, let's get you set up for your free month


Example: John Already have a WPMU DEV account? Log In