Cakephp download-How to install cakephp

Spread the love

Hey, In this CakePHP tutorial, I am going to tell you how to do CakePHP download and installation on your machine. In this tutorial, I am going to explain to you the basic steps to CakePHP download and install it.

There are two processes by which you can perform CakePHP download and CakePHP install.

  1. CakePHP download using composer
  2. Downloading CakePHP zip or tar file setup.

Process 1:

Let’s see how you can download and install CakePHP using composer.

Step 1: How to Download and install Composer.

First of all, if you don’t know what is the Composer don’t worry. A Composer is just a tool which can manage, downloads and keep track of all the necessary files required for your application.

You can learn more about the Composer from its official site.

You first need to install composer using its windows installer. You can download windows installer of Composer from here.

The installer will install Composer on your computer globally, it means you can access Composer from any path in a machine.

After installation of Composer, you can check whether the Composer is installed successfully and the version of a Composer using below command.

composer -v

Go to your command prompt and just type the above command at the default path.

As a result, this command will generate the output with the version of Composer and the other information. Please look into the below image.

Step 2: How to run a Composer command to install CakePHP

In this step of CakePHP download, we just need a single command to create your CakePHP application folder and install CakePHP setup in that folder.

Just go to the path in the command prompt where you want to put your CakePHP application.

For example: In windows with XAMPP installation – go to – c:xampphtdocs>

and run below command:

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

Replace “my_app_name” with your application name like,

C:xampphtdocs>composer create-project --prefer-dist cakephp/app my_app_name

As because the above command will create a project folder and install CakePHP setup in that folder, you don’t need to create a project folder on your own.

Run the above command and let the installation finish.

Finally, you can run your CakePHP application and check in the browser using URL – http://localhost/<your application name>.

This installation will run your application. In this tutorial, I will not go into the other details of installation like setting folder permissions and updating a composer. We will see them in other tutorials. you can also take a reference from a CakePHP book from CakePHP official cookbook.

The above process will download the latest version possible/available in the repository of CakePHP. The current version available is cakephp3.

Process 2:

Another process of CakePHP download and installation is directly downloading CakePHP from the GitHub repository of CakePHP release from this URL – https://github.com/cakephp/cakephp/releases.

In this page, you will get the various CakePHP release setups that you can download in a zip file and tar file formats. Just download setup and extract it into the CakePHP application folder. The CakePHP download zip file process is a simple download and set process.

Finally, after extract, you can check the application URL in the browser   – localhost://localhost/<your application name>.

Furthermore, after download and installation, you have to set up the configurations in the application. We will see that in other tutorials.

Hope you have got a process of CakePHP download and installation in this tutorial.

Please fill free to comment on your queries and questions. I will try to resolve them as soon as possible.

Please subscribe to codingkala.com for more CakePHP tutorials.

Subscribe here by email for more tutorials:


Spread the love

Leave a Comment