Skip to main content

Installing plugins through Composer

To install WordPress plugins using Composer, you can follow these steps:

  1. Make sure you have Composer installed on your system. If you don't already have it, you can download it from the Composer website.

  2. Open a terminal window and navigate to the root directory of your WordPress installation.

  3. Run the following command to install the Composer WordPress Plugin Installer:

composer require wp-composer/installer

  1. Run the following command to install the plugin you want to use, replacing {plugin-name} with the name of the plugin you want to install:

composer require wpackagist-plugin/{plugin-name}

  1. Activate the plugin in the WordPress admin dashboard by navigating to the "Plugins" menu and clicking on the "Activate" link for the plugin.

You can also use Composer to update and delete plugins. To update a plugin, run the composer update command and specify the plugin name. To delete a plugin, run the composer remove command and specify the plugin name.