WP Composer

WP Composer is a WP-CLI package for managing your WordPress theme and plugin dependencies. By using the power of WP-CLI and composer, you can declare the themes and plugins your WordPress site depends on.

How

Your themes and plugins will be stored in a composer.json file along, the same way you would manage other PHP dependencies.

Installation


wp package install wp-composer

Requirements

Requires WP-CLI version 0.24.0 and up

Commands

Command Description
composer plugins Manage dependencies of installed pluginsss
composer themes Manage dependencies of installed themes
composer plugin Manage dependencies of a specific plugin
composer theme Manage dependencies of a specific theme
composer add Add installed plugins and themes to composer.json
composer install Install the dependencies of third-party themes and plugins