Friday, June 17, 2016

How to install Composer and Laravel php with your wamp

Laravel is a powerful MVC PHP framework, designed for developers who need a simple and elegant toolkit to create full-featured web applications. Laravel was created by Taylor Otwell. In this Article we are going to discuss the installation of composer and Laravel frame work.

Before we start proceeding with this article, we make an assumption that you are familiar with HTML, Core PHP, and Advance PHP. 

For managing dependencies, Laravel uses composer. Make sure you have a Composer installed on your system before you install Laravel. 

1. Visit the following URL and download composer to install it on your system.
You can download and install: Composer-Setup.exe from the above link.   
2. After the Composer is installed, check the installation by typing the Composer command in the command prompt as shown in the following screenshot.

3. Create a new directory anywhere in your system for your new Laravel project. And go to that path. I have created the directory "Laravel" in c:\\wamp\www\Laravel
cd wamp\www\Laravel
4. Now execute the below command to install the laravel in above mentioned directory.
composer create-project laravel/laravel –-prefer-dist
5. Start the Laravel service by executing the following command.
php artisan serve
6.  After executing the above command you get the below screen as the server is started:
7. Now you can go to http://localhost/8000 to see the laravel page, that means Laravel has been installed successfully.

8. If you go to the root directory of the laravel you can see the below directory structure:


That's it. Hope it helps


No comments: