$modifierRegex
$modifierRegex :
Version parser
formatVersion(\QuickApps\Core\Package\Composer\Package\PackageInterface $package, boolean $truncate) : string
formatVersion().
\QuickApps\Core\Package\Composer\Package\PackageInterface | $package | Package |
boolean | $truncate | Whether to truncate or not |
parseNumericAliasPrefix(string $branch) : string|false
Extract numeric prefix from alias, if it is in numeric format, suitable for version comparison
string | $branch | Branch name (e.g. 2.1.x-dev) |
Numeric prefix if present (e.g. 2.1.) or false
parseLinks(string $source, string $sourceVersion, string $description, array $links) : array<mixed,\QuickApps\Core\Package\Composer\Package\Link>
string | $source | source package name |
string | $sourceVersion | source package version (pretty version ideally) |
string | $description | link description (e.g. requires, replaces, ..) |
array | $links | array of package name => constraint mappings |
manipulateVersionString(array $matches, integer $position, integer $increment, string $pad) : string
Increment, decrement, or simply pad a version number.
Support function for \parseConstraint()
array | $matches | Array with version parts in array indexes 1,2,3,4 |
integer | $position | 1,2,3,4 - which segment of the version to decrement |
integer | $increment | Increment |
string | $pad | The string to pad version parts after $position |
The new version
parseNameVersionPairs(array $pairs) : array<mixed,array>
Parses a name/version pairs and returns an array of pairs + the
array | $pairs | a set of package/version pairs separated by ":", "=" or " " |
array of arrays containing a name and (if provided) a version