Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

KodaC's avatar
Level 1

Update Composer / Laravel Dependencies

How do you update your dependencies to the newest versions? Do you only use composer update? There is also the Shift Dependencie Upgrader. Does it do something else? Maybe something like this? https://stackoverflow.com/a/74760024/18037102

0 likes
4 replies
martinbean's avatar

@KodaC Running composer update will update packages based on the version constraints in your composer.json file. For example, if you have a constraint of ^1.0 and you have 1.0.0 installed but 1.0.2 is available, then Composer will update the installed version to 1.0.2.

composer bump will actually modify the version constraints in your composer.json file to what’s actually installed. So if you have 1.0.2 installed, then composer bump will then update the version constraint in your composer.json to be ^1.0.2 as well.

KodaC's avatar
Level 1

Thanks for the explanation. That also works well. I tested it earlier. Thought it needed more since there are such combined commands (see link above) and for a fee the Dependencies Updater from Shift.

Please or to participate in this conversation.