PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, March 7, 2022

[FIXED] CakePHP Install Specific Version

 March 07, 2022     cakephp, cakephp-3.0, composer-php     No comments   

Issue

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?


Solution

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


Answered By - drmonkeyninja
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing