Skip to content

rohitdhiman91/laravel-setup-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Beginner’s Guide: How to Install Laravel and Set Up Local Dev Environment (2025)

Laravel is a PHP framework that combines power and simplicity. If you're getting started with backend web development, here’s how to install Laravel step-by-step and build your local development environment from scratch.


🛠️ What You’ll Learn:

  • Installing PHP & Composer
  • Setting up Laravel
  • Creating your first Laravel app
  • Running the server locally

💻 Requirements:

  • PHP >= 8.1
  • Composer (Dependency manager)
  • Laravel CLI

🚀 Steps:

1. Install PHP & Composer ➡️ Download and install PHP from https://www.php.net and Composer from https://getcomposer.org.

2. Install Laravel Globally

composer global require laravel/installer

3. Create a New Laravel Project

laravel new myapp cd myapp

4. Serve Your Laravel App

php artisan serve

5. Visit in Browser ➡️ Open http://127.0.0.1:8000 to see your Laravel welcome page.


📌 Conclusion:

This is just the beginning! Next, explore routing, Blade templating, controllers, models, and building full apps in Laravel.


Let me know if you’d like a Markdown file version or stylized HTML version too!

About

How to Install Laravel Step-by-Step: Setting Up a Local Development Environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages