Class to store and retrieve the version of Zend Framework.
Compare the specified Zend Framework version string $version with the current Zend_Version::VERSION of Zend Framework.
Parameters: | string – A version string (e.g. “0.7.1”). |
---|---|
Return type: | int -1 if the $version is older, 0 if they are the same, and +1 if $version is newer. |
Fetches the version of the latest stable release.
By Default, this uses the GitHub API (v3) and only returns refs that begin with ‘tags/release-‘. Because GitHub returns the refs in alphabetical order, we need to reduce the array to a single value, comparing the version numbers with version_compare().
If $service is set to VERSION_SERVICE_ZEND this will fall back to calling the classic style of version retreival.
Parameters: | string – Version Service with which to retrieve the version |
---|---|
Return type: | string |
Zend Framework version identification - see compareVersion()
Github Service Identifier for version information is retreived from
Zend (framework.zend.com) Service Identifier for version information is retreived from