cjmling / findings

Notes on stuff i finds worth keeping for quick reference later on.
2 stars 0 forks source link

FR: Proper way to add new package or update using composer #96

Open cjmling opened 5 years ago

cjmling commented 5 years ago

so if u have problem with specific library u need to do something like composer update guzzlehttp/guzzle – that will update it to maximum version allowed by composer.json

but if that version is not enough, then u need to do composer require guzzlehttp/guzzle:6.x (assuming it was 5.x in composer.json)

tags: composer install require update

cjmling commented 5 years ago

In case package is missing (not in vendor) , but its there in composer.json but running composer install doesn't install the package but complain about composer.lock is outdated and tell us to run update (which we should not).

In this case just run composer require <package-name>:<version> the missing package again