Hi I would like to update a semantic version number using php for a three digit system in string form. An example :
'1.0.0' => function => '1.0.1'
'1.0.12' => function => '1.0.13'
Hi I would like to update a semantic version number using php for a three digit system in string form. An example :
'1.0.0' => function => '1.0.1'
'1.0.12' => function => '1.0.13'
All the answers you want for the semantic-versioning is you can get in,
Composer also have the library for the same but the methods are easy from SemVer.
Using the following code snippet for this:
$parts = \explode('.', $previousTag, 3);
$newTag = $parts[0] . '.' . $parts[1] . '.' . (++$parts[2]);
Ignoring here edge cases for alpha, beta, rc, ... releases.