PHP Classes

PHP Version Check package blog

Recommend this page to a friend!

Latest PHP Version Check package blog posts

  All package blogs All package blogs   PHP Version Check PHP Version Check   Blog PHP Version Check package blog   Post article Post article  

1. How to Implement a PHP Version Check that Tolerates the Variations of the Version String Formats

Updated on: 2022-07-20

Posted on:

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 their current version 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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   PHP Version Check PHP Version Check   Blog PHP Version Check package blog   Post article Post article  
For more information send a message to info at phpclasses dot org.