I am new to M2 and don't exactly know much about composer.

I am able to install extensions from GitHub or Magento store with composer just fine.

But I don't know what to do with extensions where "component name" is not provided. I want to be able to later easily update it like you can with composer.

So how do I install a downloaded extension via composer?


If You need extensions name, just open registration.php file directly in extension folder. There should be something like:

 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.


Magento_Captcha is extension name.

If you want enable new extension installed via composer run:
composer update composer install (depends)
php bin/magento module:enable Magento_Captcha
php bin/magento setup:upgrade
php bin/magento setup:di:compile

EDIT: To add new repo to composer use:
composer require username/project
For example https://github.com/weprovide/magento2-module-disablevisitorlog
compsoer require weprovide/magento2-module-disablevisitorlog


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.