Composer: how can I install another dependency without updating old ones?

To install a new package and only that, you have two options: Using the require command, just run: composer require new/package Composer will guess the best version constraint to use, install the package, and add it to composer.lock. You can also specify an explicit version constraint by running: composer require new/package ~2.5 –OR– Using the … Read more