April 13, 2022 . 1 MIN READ
Reference: https://stackoverflow.com/questions/22155554/where-do-i-put-composer-json
Yes you can simple type the above command and composer.json will install the latest version of your package.
Composer.json (Respect Package)
{ “require”: { “respect/validation”: “dev-master” }}
Now run composer install will install the require package.
For further packages
{ “require”: { “respect/validation”: “dev-master”, “doctrine/orm”: “2.*” }}
Now run update composer update it will download the doctrine/orm as well.