Php composer

July 14, 2021 . 1 MIN READ

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.

 

Leave a Reply

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