MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to install Laravel

To install laravel we need composer dependency tools.

So, let us know about composer.

Composer

Composer is a tool for dependency management in PHP.
It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

Composer is not a package manager in the same sennse as Yum or Apt are. Yes, it deals with “package” or libraries, but it manages them on a per-project basis, installing them in directory (e.g. vender) inside your project.

By default, it does not install anything globally. This, it is a dependency manager. It does however support a “global” project for convenience via the global command.

Why use Composer

Suppose:

  • You have a project that depends on a number of libraries.
  • Some of those libraries depend on other libraries.

Composer:

  • Enables you to declare the libraries you depend on.
  • Finds out which versions of which package can and need to be installed, and installs them (meaning it downloads them into your project).

So, first, you have install composer with official website as https://getcomposer.org/

Composer homepage, A Dependency Manager for PHP, with the Download button circled

Then, Click this url to download composer.

Download Composer page with the Composer-Setup.exe Windows installer link circled

After install that to check the composer is installed or not, open Git Bash or command prompt on xampp/htdocs directory and execute the below command.

Git Bash in xampp/htdocs running composer, showing Composer version 1.10.8 and usage options

Now, you can check in your PHP versions, then type

Git Bash output of php -v showing PHP 7.4.6 installed

then, you can remove these php extension at your php.ini files.

If you are a windows user and you can install xampp server then go to (xampp/php/php.ini)

Laravel server requirements: PHP 7.2.5 or higher plus BCMath, Ctype, JSON, OpenSSL, PDO and other extensions

Open Command prompt and Git Bash on (xampp\htdocs)

Git Bash opened in the xampp/htdocs folder from Windows File Explorer

To install Laravel execute the following command in Git Bash or command prompt.

Git Bash running composer create-project --prefer-dist laravel/laravel blog 5.8.*

The above command installs all dependency on laravel. It will take some time.

After complete the execution of the above command, you can move to the project directory.

Git Bash running cd blog to enter the new Laravel project directory

Then, you can run your project using the following command PHP artisan serve, and open this URL in your browser at (http://127.0.0.1:8000).

Php artisan serve output showing Laravel development server started at http://127.0.0.1:8000

And see the view.

Default Laravel welcome page with links to Docs, Laracasts, News, Blog, Nova, Forge and GitHub

For more information

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
MotoShare.in provides the perfect two-wheeler for every occasion—daily commuting, weekend escapes, tourist exploration, or test-riding your dream bike. Simplify your mobility with us!

Related Posts

Xampp Troubleshooting Guide

Log Levels of Apache, MySql, PHPMyAdmin, PHP, Composer Apache MySQL PHPMyAdmin PHPMyAdmin’s log level is primarily controlled by the PHP configuration, as it’s a PHP application. PHP…

Read More

Dependency Management Tools

Have you ever struggled with managing dependencies in your project? Fear not, for there are many tools available to make your life easier. In this blog post,…

Read More

What is Composer and Its user guide & Commands

Composer is a dependency management tool for PHP. It allows developers to declare the libraries or packages their project depends on and manages (downloads, installs, updates) them…

Read More

PHP Tutorials: List of command line tools in PHP

PHP provides a number of command line tools that can be used for various purposes such as testing, debugging, and building applications. Here is a list of…

Read More

Composer Install and Configuration Guide

Windows: Composer Install and Configuration Guide Prerequisite – XAMPP Step 1 – Download Composer package https://getcomposer.org/download/ Step 2 – Click on Composer-Setup.exe to start installer Step 3…

Read More

What is Composer and How to Install Composer?

In my previous article I have explained about the best concept about Laravel in which I mentions what is Laravel and many things about its feature. if…

Read More