How to add Mage2.PRO packages to the Magento 2 root composer.json file

composer
mage2.pro
composer-require
install-extension
(Dmitry Fedyuk) #1

You need to add Mage2.PRO packages to the require section of the Magento 2 root composer.json file.

You can do it from the command line.


This command should be executed in the Magento 2 root folder!
Otherwise, you will get an error like «mage2pro/core requires magento/framework >=100.0.0 -> no matching package found».
You can check the current folder with the standard Unix pwd command.

Use the composer require command:

composer require <package name>:*

Examples

«Stripe» extension:

composer require mage2pro/stripe:*

«Price Format» extension:

composer require mage2pro/currency-format:*
0 Likes

How to know the Composer package name for a Mage2.PRO extension based in the private repository?
How to install a Mage2.PRO extension?
How to fix the «Fatal error: Allowed memory size exhausted in Composer/Cache.php»?
How to use a dedicated SSH key for the code.dmitry-fedyuk.com repository
(Dmitry Fedyuk) #2

See also:

0 Likes