Home » Laravel

Installation of Laravel PHP Framework

Laravel Framework Installation: Here, we are going to learn how to install the Laravel (a PHP Framework)?
Submitted by Bharti Parmar, on November 04, 2019

In this tutorial, we are going to install laravel framework and composer, For installation of laravel, the composer is installed on your system because of laravel use composer.

A composer is a tool that includes all the dependencies which is noted in composer.json file and libraries. Composer helps to install all the other libraries which will be used in the application. It allows us to create a project.

Similarly, in laravel Artisans is a command-line interface which includes a set of command which help in building a web application.

Use the following steps to install laravel on your system,

  1. Download composer from: https://getcomposer.org/download/

    Laravel Installation step 1
  2. Install the composer on your system and run.
  3. After installation of composer check on command prompt PHP artisan –version OR PHP –version then after check composer.

    Laravel Installation step 2

    Laravel Installation step 3
  4. Now, create a project or directory for your project using laravel in any place wherever you want to create your project on your system.

    Laravel Installation step 4
  5. Then after open that folder see your project folder is created Like: I have created my project under
    C:\xampp\htdocs\restaurent_management
    And open the command prompt on that page and write PHP artisan serve like,

    Laravel Installation step 5
  6. Now, copy this http: URL and run on your browser.

    Laravel Installation step 6

You can also use laravel in your project by using xampp and wamp server for this:

After installing Xampp server from: https://www.apachefriends.org/index.html wamp server from: https://sourceforge.net/projects/wampserver/.

  • Create a laravel project under C:\xampp\htdocs
  • Open localhost page on your browser:

    Laravel Installation step 7
  • Now, go to your laravel project,

    Laravel Installation step 8

Here, go to the public folder and start your laravel project,

Laravel Installation step 9

Conclusion:

In this article, we have learnt about the installation of laravel with composer and to create a project. We will know more about it in the upcoming article. Have a nice day! Happy Learning!






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.