Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5556

How to install packages using composer from local directory

$
0
0

How to install packages using composer from local directory

To install packages using composer from your local directory, please use the following commands-

$ 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 🙂


Viewing all articles
Browse latest Browse all 5556

Latest Images

Trending Articles



Latest Images