This class allows to get the installed version of the framework
Area where the version number is set. The format is as follows: ABBCCDE A - Major version B - Med version (two digits) C - Min version (two digits) D - Special release: 1 = Alpha, 2 = Beta, 3 = RC, 4 = Stable E - Special release version i.e. RC1, Beta2 etc.
Translates a number to a special release If Special release = 1 this function will return ALPHA
Returns the active version (string)
echo Phalcon\Version::get();
Returns the numeric active version
echo Phalcon\Version::getId();
Returns a specific part of the version. If the wrong parameter is passed it will return the full version
echo Phalcon\Version::getPart(Phalcon\Version::VERSION_MAJOR);
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Version.html