PHP Classes

How to Implement a PHP Version Check that Tolerates the Variations of the Version String Formats - PHP Version Check package blog

Recommend this page to a friend!
  All package blogs All package blogs   PHP Version Check PHP Version Check   Blog PHP Version Check package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Implement a PH...  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Package: PHP Version Check

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.




Loaded Article

About the PHP Version Check Package

The package PHP Version Check is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Parse a string with a version number

Here follows in more detail what it does:

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.

Conclusion

The PHP Version Check can be downloaded from download page or be installed using the PHP Composer tool following instructions in the Composer install instructions page.

This package was considered notable for implementing its benefits in a way that is worth noticing.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.

One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.




You need to be a registered user or login to post a comment

1,614,673 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:



Comments:

No comments were submitted yet.



  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   RSS 1.0 feed RSS 2.0 feed   Blog How to Implement a PH...