More control in composer require versions

Change-Id: I7f55412f763be2e23a97c877834a797fa507bb9d
(cherry picked from commit 629a5e604efe91c3b6271b156f4a76d9d00a913e)
Merge "More control in composer require versions" into mw1.23-wmf15