Back to Top

How to install packages using composer from local directory

Updated 26 March 2024

How to install packages using composer from local directory

To install packages using composer from your local directory, please use the following commands-
Check latest magento extensions.

$ composer config repositories.repo-name path /home/Downloads/DemoPackage
$ composer require company/package

You will get the ‘company/package’ name from the composer.json file inside your package

{
  "name":"company/package",
  "description":"this is test package"
}

That’s it.

Happy coding ­čÖé

Searching for an experienced
Magento 2 Company ?
Find out More
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home