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 Get Current Date, Time and Day in Laravel

How to Get Current Date Time and Format in Laravel ?

September 2, 2022March 16, 2024

Laravel has carbon library to get the current date time and format in laravel and also we can use core php date functions to fetch the date and time. After php 5, php also introduced DateTime class to conduct the operations of date time related functionality. Sometimes in our application…

Read More
Php How to Show Success and Error Flash Message in Laravel

How to Show Success and Error Flash Message in Laravel ?

June 27, 2022November 7, 2023

In this article we will learn to show flash success and error message in laravel. Flash messages are useful when we want to notify the user about their recent activity like submit a form or making any action on website so in this case it may multiple type of messages…

Read More
Laravel Efficient and Secure Way to Write Raw Queries in Laravel

Efficient and Secure Way to Write Raw Queries in Laravel

July 1, 2024July 1, 2024

Laravel is a powerful and versatile PHP framework that simplifies many aspects of web development, including database interactions. While Laravel’s Eloquent ORM and query builder are incredibly useful, there are times when you need to write raw SQL queries for more complex operations. However, writing raw queries requires a careful…

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

  • The Resilience of Nature: How Forests Recover After Fires
  • Understanding Laravel Cookie Consent for GDPR Compliance
  • 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
©2023 Readerstacks | Design and Developed by Readerstacks
Go to mobile version