check library version against semver version_compare()
added PATCH version as well

aligns with `version_compare()` from earlier 5.2 PHP versions. Tests are passing.
Merge pull request #14 from pmoust/patch-1

check library version against semver version_compare()