Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CakePHP Install Specific Version

I am trying to install CakePHP by referring to their website link: http://book.cakephp.org/3.0/en/installation.html

I use the below command to install Cake, which it does, but it installs the latest version, i.e, 3.2.0

composer create-project --prefer-dist cakephp/app my_app_name

I need to install the version 3.0.0 for a project. Does anybody know how to install cake by specific version?

like image 279
Deepanshu Goyal Avatar asked Feb 04 '16 09:02

Deepanshu Goyal


3 Answers

If you run composer help create-project it states that:-

You can also specify the version with the package name using = or : as separator.

So you can use either of the following commands (similar to installing a package with require):-

composer create-project --prefer-dist cakephp/app:3.0.0 my_app_name

Or:-

composer create-project --prefer-dist cakephp/app=3.0.0 my_app_name

You can also use * notation as a wildcard in the version number. So if you want to make sure you get all the most recent bug fixes of the 3.0.x branch:-

composer create-project --prefer-dist cakephp/app:3.0.* my_app_name
like image 55
drmonkeyninja Avatar answered Oct 10 '22 15:10

drmonkeyninja


Try

composer create-project --prefer-dist cakephp/app=3.0.0 my_app_name 
like image 26
Salines Avatar answered Oct 10 '22 14:10

Salines


that's work to me...

composer create-project --prefer-dist cakephp/app ProjectName 3.0

specify version after project name.

like image 2
John C Avatar answered Oct 10 '22 15:10

John C