Since CakePHP 3.0.0, the CakePHP core is installed as a Composer dependency of your project and it no longer resides in lib/Cake
. It is now under vendor/cakephp/cakephp
instead (after running a composer install
). Also see the documentation on this.
Also, the bake command is now a Plugin that you will need to include manually if you want to use it.
php composer.phar require --dev cakephp/bake:dev-master
I would recommend to start your project with the App template. This already has the bake plugin in it's composer.json file. Just check it out locally:
cd /your/dev/folder
git clone https://github.com/cakephp/app.git yourApp
Then install everything at once with Composer:
cd yourApp
curl -sS https://getcomposer.org/installer | php
php composer.phar install
This will give you the bake shell (in the bin
folder of your project) and the framework itself all in one.