Custom Web Applications to Grow Your Business

(256) 429-8145

Installing cakePHP 3.0 on xampp using composer

Here is a quick way to install cakePHP in xampp using composer

Download cakePHP 3.0

Log in to the shell of xampp

Change directory to htdocs

# cd htdocs

Install composer to your xampp

# php -r "readfile('https://getcomposer.org/installer');" | php

This will install composer.phar in your htdocs folder

nstall cakePHP

# php composer.phar create-project --prefer-dist cakephp/app cake

If you see an error such as "Warning: require(C:\xampp\htdocs\cake\vendor\autoload.php): failed to open stream: No such file or directory".

Download a copy of cakephp at git: https://github.com/cakephp/app

Add the contents of the vendor directory into C:\xampp\htdocs\cake\vendor\

You might also see and error: Fatal error: You must enable the intl extension to use CakePHP. in C:\xampp\htdocs\cake\config\bootstrap.php on line 38

To fix this, open you php.ini file and change ;extension=php_intl.dll to extension=php_intl.dll

You may experience an error: Could not load configuration file: C:\xampp\htdocs\cake\config\app.php

Go to C:\xampp\htdocs\cake\config\app.default.php and change to app.php

Using Jpgraph with Cakephp: http://www.huntsvillepr.com/posts/installing-cakephp-30-on-xampp-using-composer-930.html