composer.json or higher code example
Example 1: composer minimum stability
Available options (in order of stability) are dev, alpha, beta, RC, and stable.
Example 2: composer require with version
composer require vendor/package:version
composer require refinery29/test-util:0.10.2