Great tip by Mattias:
TIL: you can fake package versions in composer using the "as" alias. Useful to force install certain versions while keeping other dependencies in check! 👍https://t.co/VzmMRCCoR5
— Mattias Geniar (@mattiasgeniar) April 16, 2020
You can alias directly when requiring a package:
composer require monolog/monolog:"dev-bugfix as 1.0.x-dev"
Surely comes in handy when locally adjusting a library. More info on Inline Aliases in the Composer Documentation.