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.
GitHub Repo: https://github.com/rohitdhiman91/laravel-setup-guide
📌 Conclusion:
This is just the beginning! Next, explore routing, Blade templating, controllers, models, and building full apps in Laravel.
Subscribe to my newsletter
Read articles from Rohit Dhiman directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Rohit Dhiman
Rohit Dhiman
Laravel developer with 10+ years experience building scalable backends, APIs, and full-stack systems. 💡 Expect posts about: Laravel design patterns Stripe & Twilio integrations RESTful API tips Docker for Laravel devs AWS setups for backend scaling Let’s learn & build together 🚀