I wish to make my module available in github repository and then i wish to install it to my local using composer.json. How is this possible? Please provide me a solution, to install my module using composer.json ?

  • Hello @Jaisa, Mitchum solution worked ? – Pawan Feb 15 '19 at 17:36

You can easily host your code to github You need to have a valid composer.json on your module repo. After you just have to add your repository into your magento composer.json like

"repositories": [
{ "type": "vcs", "url": "https://github.com/mycompany/privaterepo" }

and you can make a composer require my-module

that's it.

But if you got several modules, think about packagist or Satis instance to handle it easily.

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.