PHP Classes

PHP Version Check: Parse a string with a version number

Recommend this page to a friend!
  Info   View files Documentation   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2022-06-24 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 73 This week: 3All time: 9,974 This week: 62Up
Version License PHP version Categories
version 1.0The PHP License5PHP 5, Parsers
Description Author

This package can parse a string with a version number.

It can take a string with a version number and parses it to extract the version details.

The class can extract the version major, minor, and patch numbers and the next major, next minor, and following patch numbers.

It can also normalize version strings to reformat strings that may not comply with semver version specification.

Innovation Award
PHP Programming Innovation award nominee
June 2022
Nominee
Vote
Many software projects use a convention to number the project version numbers called semver.

This conversion splits the version numbers into three parts: major version, minor version, and patch number.

This possibility helps developers determine if the current version they are using is more recent or older than some other version.

This package parses version string numbers in a way that tolerates variations like putting a v in the front of the version, using needless zero characters before the version number parts, or even missing minor or patch numbers.

It can also normalize the version number strings to comply more with the semver convention.

Manuel Lemos
Picture of Roni
  Performance   Level  
Name: Roni <contact>
Classes: 10 packages by
Country: Bangladesh Bangladesh
Innovation award
Innovation award
Nominee: 4x

Details

version

Simple Php DataType Class for version string

  Files folder image Files  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Plain text file Version.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:73
This week:3
All time:9,974
This week:62Up
For more information send a message to info at phpclasses dot org.