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?
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
Try
composer create-project --prefer-dist cakephp/app=3.0.0 my_app_name
that's work to me...
composer create-project --prefer-dist cakephp/app ProjectName 3.0
specify version after project name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With