Cakephp Tutorials
Important Links
CakePHP Installation
Download CakePHP Version
The easiest way to install CakePHP is to use Composer. Composer is a simple way of installing CakePHP from your terminal. First, you’ll need to download and install Composer.
Windows Installer
The installer will download composer for you and set up your PATH environment variable so you can simply call composer from any directory.
Download and run Composer-Setup.exe. it will install the latest composer version whenever it is executed.
Execute the composer and choose your php path D://xampp/php/php.exe of your local server. and click next -> next -> finish.
Then simply type the following line in your terminal from your installation directory to install the CakePHP application skeleton in the [app_name] directory.
php composer.phar create-project --prefer-dist cakephp/app [app_name]
In case you’ve already got composer installed globally, you may instead type:
composer self-update && composer create-project --prefer-dist cakephp/app [app_name]
Here [app_name] is the application name . you can rename of your project name.
open your command prompt and move your htdocs folder of your xampp server.
c:\\>cd xampp
c:\xampp>cd htdocs
c:\xampp\htdocs>php composer.phar create-project --prefer-dist cakephp/app myphpproject
if error occurs then you type these command
composer self-update && composer create-project --prefer-dist cakephp/app myphpproject
after that execute file and install cakephp successfully in your directory.
The advantage to using Composer is that it will automatically complete some important set up tasks, such as setting the correct file permissions and creating your config/app.php file for you.