Home » Laravel » Create first Laravel application easily by using Composer

Create first Laravel application easily by using Composer

This post is basically for people who want to run their first Laravel 5.5^ application.

 
Note: This post only focus on installation of new Laravel 5.5 application. Nothing any coding.
 
If you are new to Laravel, don’t worry. This tutorial will guide you to run your first Laravel application by your self. First of all, we need to install some dependencies. Let’s start!
 

Steps

01. Download and install the XAMP
 
02. Install the composer
 
03. Create a new Laravel application
 

01. Download and install the XAMP on our computer.

Why we use XAMP?

Laravel is a PHP framework and, PHP program can run on various environments like WAMP, MAMP, XAMP etc. So, I’m going to select and install the XAMP.

  • Click on link here

XAMP website

  • Then, select the latest version of the XAMP according to your Operating System and download the installer.
  • After downloading the installer,  install XAMP on your machine.
  • Finally, check PHP version by running “php -v” command in the cmd.

check php version

If you can see this message, you have successfully installed the XAMP. Then, we have to install the composer.

02. Install composer

Why we use composer?

Composer is a package manger for PHP.  Packages and dependencies of the PHP frameworks are difficult to manage manually. By using the composer, we can manage packages and dependencies very easily.

  • To download the composer click here.

  • Then, download the composer installer.
  • After that, install composer by running the installer.
  • Open the command prompt and run “composer -v” to check version of the composer.

check composer version

If you can see this message, you have successfully installed composer on you machine.

Usually, I install Laravel applications on my C:\xampp\htdocs directory.  You can use whatever directory that you want.

3. Install new Laravel application

  • Then, Open the command prompt and navigate to your folder.
  • Type “composer create-project laravel/laravel FirstLaravelApplication “5.5.*” and hit enter.

install new laravel application

As you can see, all the dependencies will be download and installed on your machine.

install laravel application

To serve our application, just type “php artisan serve”.

serve application

Application run on http://127.0.0.1:8000.

running application

Now you have installed your first Laravel 5.5 application. If you feel this tutorial was helpful,  don’t forget to share. Also, If you have any question feel free to comment. Thank you for reading.

Please follow and like us:
Summary
Create first Laravel 5.5 application using Composer
Article Name
Create first Laravel 5.5 application using Composer
Description
Create a fresh Laraavel 5.5 application using composer. This post is basically for those who want to run their first application under Laravel framework.   Note: This post only focus on installation of new Laravel 5.5 application. Nothing any coding.
Author
Publisher Name
Angular + Laravel
Publisher Logo