Installing a specific version of CakePHP

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

I use the command below to install Cake, 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 version 3.0.0 for the project. Does anyone know how to set a cake on a specific version?

+4
source share
2 answers

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

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

Thus, you can use one of the following commands (similar to installing package c 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

* . , , 3.0.x: -

composer create-project --prefer-dist cakephp/app:3.0.* my_app_name
+5

Try

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

Source: https://habr.com/ru/post/1627258/


All Articles