How to get the version numbers for Cakephp

How to get the version numbers for Cakephp

#Project Structure::

-- app
-- lib
    --Cake
        --VERSION.txt
-- plugins
-- vendors
-- index.php

Open The VERSION.txt file. There You will find Like below. Last line show the version of cakephp
Here, You can see, VERSION is 2.8.0

////////////////////////////////////////////////////////////////////////////////////////////////////
// +--------------------------------------------------------------------------------------------+ //
// CakePHP Version
//
// Holds a static string representing the current version of CakePHP
//
// CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
// Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
//
// Licensed under The MIT License
// Redistributions of files must retain the above copyright notice.
//
// @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
// @link http://cakephp.org
// @package Cake
// @since CakePHP(tm) v 0.2.9
// @license http://www.opensource.org/licenses/mit-license.php MIT License
// +--------------------------------------------------------------------------------------------+ //
////////////////////////////////////////////////////////////////////////////////////////////////////
2.8.0

——————————–
OR, Other ways is::
——————————–

Path for version.txt

#Path for version.txt

For cakephp 1.* : cake/VERSION.txt

For cakephp 2.* : lib/Cake/ VERSION.txt

For cakephp 3.* : vendor/cakephp/cakephp/ VERSION.txt

——————————–
OR, Other ways is::
——————————–

Just Print,

echo Configure::version();

 

Leave a Comment