How to install the Rich Snippet Suite extension using Composer

This is an article from the Rich Snippets Suite extension for Magento 2. We've tried our best in the preparation of this help article. If you do not find the answer you were looking for, you can always send us a message through this form.

Besides installing Magento 2 extensions via SSH manually or through the Marketplace Wizard, installing via composer is another very popular and even the most simple and safe to install an extension.

In this article, we will provide you with a step-by-step instruction about how to do to get a Magento 2 extension installed on the website by Composer. Note that this guide is only for extensions that are bought directly in our store.

Get the Details

Login to your account to get your Composer Authentication Keys and Credentials which are automatically generated after purchasing one of our extensions.
You can also create new Composer keys with a description in case you want to change environments and keys.

Backup (optional but recommended)

We strongly recommend testing your installation in a development environment prior to releasing it to production. Also, make sure you have a full backup available of your store in case you need to make a rollback, more information about creating backup and the roll back can be found here.

The next step is to add the packages.magmodules.eu repository to your Composer file.

Add repository by SSH

Through an SSH connection, all you have to do is run the following command from your Magento installation directory. In this way, you can connect with our private repository.

composer config repositories.magmodules composer https://packages.magmodules.eu/

After executing this account, a blank line appears and the repositories are successfully added to your Composer.JSON file.
If you want to add the Composer repository manually, please see your account for the exact commands.

Once the repository is added to the composer.json file, you can now install the packages that are available through it. If preferred, enable the maintenance mode, see last part of this section.

Download extension

To download the extension to your store, execute the following command:

composer require magmodules/m2-rich-snippets-suite

After executing this command the first time, the username and password of the Composer Auth Keys will be asked and can be obtained here.

Install extension

After that the extension is successfully downloaded, start the setup of the Rich Snippets Suite extension by running this commands:

php bin/magento module:enable Magmodules_RichSnippets
php bin/magento setup:upgrade

If Magento is running in production mode, recompile and deploy static content using the following commands:

php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

Now you've succesfully excecuted the right commands and the extension is successfully installed, it's ready for configuration. Navigate to Stores ⇨ Configuration ⇨ Magmodules ⇨ Rich Snippets Suite to start the configuration.

Maintenance mode

You may want to enable the maintenance mode when installing or updating the module, especially when working on a production website. To do so, run the two commands below before and after running the other setup commands:

php bin/magento maintenance:enable
# Other setup commands
php bin/magento maintenance:disable

It's also possible to easily remove, update and update to a specific version using the following commands:

To update the extension to the latest version, use the command:

composer update magmodules/m2-rich-snippets-suite

If you want to update another version, not the latest version of the extension use the command:

composer require magmodules/m2-rich-snippets-suite: version

To remove the extension, use the command:

composer remove magmodules/m2-rich-snippets-suite

Direct Help

At Magmodules, our support team is here to help you every step of the way. If you can't find a solution in our Knowledgebase, simply fill in the form below. We are in the Central European Timezone, and all your details are securely sent to us.
The more information you provide, the better we can assist you. Trust us to guide you through any challenge and ensure a seamless experience with our products and services.
Support by e-mail contact@magmodules.eu