# PHP and Laravel

> Use modern PHP with Laravel or Symfony, the stack behind a large share of the web. Free notes, key concepts, resources and a mini project.

Canonical: https://www.internhack.in/roadmaps/tracks/backend/php
Last updated: 2026-11-28

Use modern PHP with Laravel or Symfony, the stack behind a large share of the web.

Beginner · about 40 hours · difficulty 2/5

Learn first: [HTTP in Depth](https://www.internhack.in/roadmaps/tracks/backend/http-protocol)

**PHP** powers a very large part of the web, including WordPress, and modern PHP (8.x) is a far cry from its reputation: it has types, enums, attributes, JIT compilation and a strong package manager in **Composer**.

### Frameworks

- **Laravel**: elegant, productive and full-featured. Eloquent ORM, migrations, queues, auth scaffolding and a large ecosystem.
- **Symfony**: component-based and very structured; many other projects (including Laravel) use its components.

### What to learn

- PHP 8 syntax, strict types, classes, interfaces, namespaces and Composer autoloading.
- The request lifecycle: traditionally each request starts fresh (share-nothing), which makes scaling simple but means caching and connection reuse work differently than in long-running servers.
- Running with **PHP-FPM** behind Nginx, or newer long-running servers like **FrankenPHP** or Laravel Octane.

### Pitfalls

- Following old tutorials that build SQL with string concatenation. Always use prepared statements or the ORM.
- Mixing HTML and business logic in one file.

You are ready to move on when you can build a Laravel or Symfony API with migrations, validation, auth and a queue-backed job.

## Key concepts

- **Modern PHP 8 features**
- **Composer and autoloading**
- **Laravel**
- **Symfony**
- **PHP-FPM with Nginx**
- **Eloquent ORM**

## Other options for this step

- [JavaScript on the Server with Node.js](https://www.internhack.in/roadmaps/tracks/backend/nodejs): Learn Node.js, its event loop, npm and a web framework like Express or Fastify to build HTTP APIs.
- [Python for Backend Development](https://www.internhack.in/roadmaps/tracks/backend/python): Use Python with Django, Flask or FastAPI to build readable, productive web services.
- [Go for Backend Services](https://www.internhack.in/roadmaps/tracks/backend/go): Learn Go's simple syntax, goroutines and standard library to build fast, easily deployed services.
- [Java and the Spring Ecosystem](https://www.internhack.in/roadmaps/tracks/backend/java): Build enterprise-grade services with Java, Maven or Gradle and Spring Boot.
- [C# and ASP.NET Core](https://www.internhack.in/roadmaps/tracks/backend/csharp): Build cross-platform web APIs with C#, .NET and ASP.NET Core.
- [Ruby on Rails](https://www.internhack.in/roadmaps/tracks/backend/ruby): Build products quickly with Ruby and Rails' convention-over-configuration approach.
- [Rust for High-Performance Backends](https://www.internhack.in/roadmaps/tracks/backend/rust): Use Rust with Axum or Actix for memory-safe, very fast services, accepting a steeper learning curve.

## Mini project

Build a Laravel API for an event RSVP system with migrations, form request validation and an email notification sent from a queued job.

## Check yourself

How does PHP's share-nothing request model affect how you cache data compared with a long-running Node or Go server?

## Free resources

- [PHP manual](https://www.php.net/manual/en/) (php.net)
- [Laravel documentation](https://laravel.com/docs) (Laravel)
- [PHP The Right Way](https://phptherightway.com/) (phptherightway.com)

Previous: [C# and ASP.NET Core](https://www.internhack.in/roadmaps/tracks/backend/csharp) · Next: [Ruby on Rails](https://www.internhack.in/roadmaps/tracks/backend/ruby)

## More in Pick One Server Language

- [JavaScript on the Server with Node.js](https://www.internhack.in/roadmaps/tracks/backend/nodejs)
- [Python for Backend Development](https://www.internhack.in/roadmaps/tracks/backend/python)
- [Go for Backend Services](https://www.internhack.in/roadmaps/tracks/backend/go)
- [Java and the Spring Ecosystem](https://www.internhack.in/roadmaps/tracks/backend/java)
- [C# and ASP.NET Core](https://www.internhack.in/roadmaps/tracks/backend/csharp)
- [PHP and Laravel](https://www.internhack.in/roadmaps/tracks/backend/php)
- [Ruby on Rails](https://www.internhack.in/roadmaps/tracks/backend/ruby)
- [Rust for High-Performance Backends](https://www.internhack.in/roadmaps/tracks/backend/rust)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Backend Developer Roadmap](https://www.internhack.in/roadmaps/tracks/backend)
