Install Dependencies With Composer

Hi,

I would like to install a own package with composer.

1. In cs cart project, I added to "app/lib/composer.json" the package repo

{
   "type": "git",
    "url": "https://bitbucket.org/companydevelop/mypackage-core"
}

2- I changed to "app/lib" folder and I executed composer require mypackage/core:master-dev

I did not get errors and this seems work, but I wonder if it is the best practice. Is this the proper way to install a composer package?

Thanks

Hello Folks !

I don't know how to install composer, if I have install composer then I did not show any error here.

Thanks a lot !