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.
- Installing PHP & Composer
- Setting up Laravel
- Creating your first Laravel app
- Running the server locally
- PHP >= 8.1
- Composer (Dependency manager)
- Laravel CLI
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.
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!