Beginning composer’s users probably wonder what the symbols mean before the repo version number.
Already hurry with an explanation, for example, the snippet of composer. JSON:
„Require”: {
„Vendor/Package”: „1.3.2”,//exactly 1.3.2
// >, <,>=, <= | specify upper / lower bounds |=”” specify=”” upper=”” lower=””></= | specify upper / lower bounds></,>
„Vendor/Package”: „> = 1.3.2”,//anything above or equal to 1.3.2
„Vendor/package”: „<1.3.2″, // anything below 1.3.2 anything=”” below=””></1.3.2″, // anything below 1.3.2>
// * | Wildcard
„Vendor/Package”: „1.3. *”,//> = 1.3.0<1.4.0></1.4.0>
// ~ | Allows last digit specified to go up
„Vendor/Package”: „~ 1.3.2”,//> = 1.3.2<1.4.0></1.4.0>
„Vendor/Package”: „~ 1.3”,//> = 1.3.0<2.0.0></2.0.0>
// ^ | Doesn’t allow breaking changes (major version fixed-following semver)
„Vendor/Package”: „^ 1.3.2”,//> = 1.3.2<2.0.0></2.0.0>
„Vendor/Package”: „^ 0.3.2″,//> = 0.3.2<0.4.0 // except if major version is 0 except=”” if=”” major=”” version=”” is=””></0.4.0 // except if major version is 0>
}