Skip to content
Readerstacks logo Readerstacks
  • Home
  • Softwares
  • Angular
  • Php
  • Laravel
  • Flutter
Readerstacks logo
Readerstacks
install laravel composer

How to install laravel 8 ?

Aman Jain, September 20, 2021May 6, 2022

Laravel is most popular framework of PHP. It provides lots of in-build tools and library to build the web application. Laravel is used to to create robust custom web applications with ease of amazing developer experience.

Laravel is easily customizable and provides tools like ORM, Validation libraries, Queue, Mail, Routing, Schedulers, Views engines and Model view controller architecture.

Installing Laravel using composer

To install the Laravel using the composer there is few requirements which are below:

# Requirements:

  1. PHP 5.3.2+ for Laravel >= 5
  2. Php > 7.2.5 for Laravel 8
  3. BCMath PHP Extension
  4. Ctype PHP Extension
  5. Fileinfo PHP extension
  6. JSON PHP Extension
  7. Mbstring PHP Extension
  8. OpenSSL PHP Extension
  9. PDO PHP Extension
  10. Tokenizer PHP Extension

Read how to install extensions and php and What is composer and how to install composer?.

After checking the requirements, now we can start the installation.

First step is to open the command line in windows or terminal in Ubuntu and go to the folder where you want to install the Laravel. Most probably the directory of web server (var/www/html or htdocs)

$ composer create-project laravel/laravel example-app

here, example-app is the name of project.

This will show result as below

Screenshot 2021 09 20 at 10.16.36 AM
larvael composer install
Screenshot 2021 09 20 at 10.16.11 AM 1

Getting error like below

error_outline

ERROR


PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted

then change composer memory limit and run composer update in example-app

 COMPOSER_MEMORY_LIMIT=-1  composer update

And the directory structure after installation

Screenshot 2021 09 20 at 10.18.13 AM
Laravel directory structure

Check the installation in browser by opening URL http://domain_ip/example-app/public

Screenshot 2021 09 20 at 10.23.20 AM

Related

Php Laravel

Post navigation

Previous post
Next post

Related Posts

Php How to Change Date Format in Blade View File in Laravel

How to Change Date Format in Blade View File in Laravel ?

September 8, 2022March 16, 2024

Laravel default shows the date in the way its stored in database bu sometimes we want to change date format in blade view file in laravel according to our requirements. It can be multiple possibilities and requirement from client or product manager to change the date format so in this…

Read More
Php How to Fetch Records Between Two Date Range in Laravel

How to Fetch Records Between Two Date Range in Laravel ?

September 6, 2022March 16, 2024

Many times we want to fetch records between two date range in laravel like find all records which is created between start yesterday and end today so in that case we need to check it with created_at columns in database but created_at column also has time and if we directly…

Read More
Php Laravel orderBy clause in eloquent with example

Laravel orderBy clause in eloquent with example

October 5, 2022March 16, 2024

In this blog post, we will take a look at how to use the Laravel orderBy clause in the Eloquent ORM.Laravel provides an expressive, fluent interface for creating and retrieving records in your database. When we work with databases in Laravel, we often need to order the results we get…

Read More

Aman Jain
Aman Jain

With years of hands-on experience in the realm of web and mobile development, they have honed their skills in various technologies, including Laravel, PHP CodeIgniter, mobile app development, web app development, Flutter, React, JavaScript, Angular, Devops and so much more. Their proficiency extends to building robust REST APIs, AWS Code scaling, and optimization, ensuring that your applications run seamlessly on the cloud.

Categories

  • Angular
  • CSS
  • Dart
  • Devops
  • Flutter
  • HTML
  • Javascript
  • jQuery
  • Laravel
  • Laravel 10
  • Laravel 11
  • Laravel 9
  • Mysql
  • Php
  • Softwares
  • Ubuntu
  • Uncategorized

Archives

  • June 2025
  • May 2025
  • April 2025
  • October 2024
  • July 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • July 2023
  • March 2023
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Recent Posts

  • Understanding High Vulnerabilities: A Critical Overview of the Week of May 12, 2025
  • Installing a LAMP Stack on Ubuntu: A Comprehensive Guide
  • Understanding High Vulnerabilities: A Deep Dive into Recent Security Concerns
  • Understanding High Vulnerabilities in Software: A Week of Insights
  • Blocking Spam Requests with LaraGuard IP: A Comprehensive Guide
©2023 Readerstacks | Design and Developed by Readerstacks
Go to mobile version