2034. Class

2034.1. Zend\Version\Version

Class to store and retrieve the version of Zend Framework.

2034.1.1. Methods

2034.1.1.1. compareVersion

compareVersion()

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.

2034.1.1.2. getLatest

getLatest()

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

2034.1.1.3. isLatest

isLatest()

Returns true if the running version of Zend Framework is the latest (or newer??) than the latest tag on GitHub, which is returned by static::getLatest().

Return type:bool

2034.1.2. Constants

2034.1.2.1. VERSION

Zend Framework version identification - see compareVersion()

2034.1.2.2. VERSION_SERVICE_GITHUB

Github Service Identifier for version information is retreived from

2034.1.2.3. VERSION_SERVICE_ZEND

Zend (framework.zend.com) Service Identifier for version information is retreived from