Skip to content

Installation using Composer

Michiel Gerritsen edited this page May 15, 2023 · 3 revisions

Magento® 2 use the Composer to manage the module package and the library. Composer is a dependency manager for PHP. Composer declare the libraries your project depends on and it will manage (install/update) them for you.

Check Composer Status

Check if your server has composer installed by running the following command:

composer –v

If your server doesn’t have the composer install, you can easily install it. https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx

Install using Composer

Step-by-step to install the Magento® 2 extension by Composer:

  1. Run the ssh console.
  2. Locate your Root
  3. Install the Magento® 2 extension
  4. Cache and Deploy

  1. Run your SSH Console to connect to your Magento® 2 store

  2. Locate the root of your Magento® 2 store.

  3. Enter the command line in your Root and wait as composer will download the extension for you:

composer require mollie/magento2
  1. When it’s finished you can activate the extension, clean the caches and deploy the content in your Magento® environment using the following command line;
php bin/magento module:enable Mollie_Payment
php bin/magento setup:upgrade
php bin/magento cache:clean

If Magento® is running in production mode, deploy the static content:

php bin/magento setup:static-content:deploy

After the installation. Go to your Magento® admin portal, to ‘Stores’ > ‘Configuration’ > ‘Sales’ > ‘Payment Methods’ > ‘Mollie Payments’. Select ‘General’.