Install CakePHP 3 using Composer


CakePHP is a free, open-source, rapid development framework for PHP. CakePHP follows the Model-View-Controller (MVC) software design pattern and makes building web applications simpler, faster and require less code.

CakePHP has released 3.x versions with many changes. CakePHP 3.x features enhanced session management, standalone libraries and decoupled components for better modularity, improvements in ORM and many helpers.

Before Install CakePHP 3 make sure following requirements are enabled and installed on your machine:


1) You must have PHP 5.5.9 or greater.
2) mbstring extension and intl extension must be enabled. Make sure these lines are enable by removing the semicolon (;) from the start in php.ini file.


Install Composer

There are few easy step Install Composer on Window. Click here to more.

Once you successfully installed the Composer, then type composer and press enter in the terminal you will get following response like in the below image.


Go to htdocs directory on your XAMPP server to Install CakePHP 3

htdocs directroy

Now Run the following command to install CakePhp 3 using Composer on your server in cakeapp folder in this C:\xampp\htdocs\cakeapp\ path.

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

composer command

Once you successfully installed CakePhp 3 on your machine then you will get following response like in the below image.

cakephp installed

Finally it will ask you to set Folder Permission, so press Y to continue.

Configuration Database

Configuration database details in config/app.php file.

'Datasources' => [
        'default' => [
            'className' => 'Cake\Database\Connection',
            'driver' => 'Cake\Database\Driver\Mysql',
            'persistent' => false,
            'host' => 'localhost',
            'username' => 'root',
            'password' => '',
            'database' => 'cakeapp',
            'encoding' => 'utf8',
            'timezone' => 'UTC',
            'flags' => [],
            'cacheMetadata' => true,
            'log' => false,
            'quoteIdentifiers' => false,
            'url' => env('DATABASE_URL', null),
Leave a reply
Captcha Click on image to update the captcha .