PHP and Laravel
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
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: Learn Node.js, its event loop, npm and a web framework like Express or Fastify to build HTTP APIs.
- Python for Backend Development: Use Python with Django, Flask or FastAPI to build readable, productive web services.
- Go for Backend Services: Learn Go's simple syntax, goroutines and standard library to build fast, easily deployed services.
- Java and the Spring Ecosystem: Build enterprise-grade services with Java, Maven or Gradle and Spring Boot.
- C# and ASP.NET Core: Build cross-platform web APIs with C#, .NET and ASP.NET Core.
- Ruby on Rails: Build products quickly with Ruby and Rails' convention-over-configuration approach.
- Rust for High-Performance Backends: 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 (php.net)
- Laravel documentation (Laravel)
- PHP The Right Way (phptherightway.com)