How to Master PHP: The Complete 2027 Roadmap (Modern PHP, Laravel and Symfony)
A free, staged path from your first
echoto shipping and maintaining production PHP applications with Laravel or Symfony, with time estimates, the best free resources, projects and the tools professionals use.
Last reviewed: December 2026 (PHP 8.6, Laravel 13, Symfony 8.2 / 7.4 LTS)
If you want to learn PHP in 2027, or you learned it years ago and want to master modern PHP, this roadmap is for you. PHP still powers a large share of the web (WordPress, Drupal, Magento, Wikipedia’s MediaWiki, and countless Laravel and Symfony apps), and the language itself has changed more since PHP 7 than most people realize: strict types, enums, readonly classes, attributes, property hooks, a pipe operator and, as of PHP 8.6, partial function application. This guide shows you what to learn, in what order, how long each stage takes, and which free resources are actually worth your time.
Table of contents
- Who this roadmap is for
- PHP in late 2026: the state of things
- The roadmap at a glance
- Stage 0: Set up a modern PHP environment
- Stage 1: PHP fundamentals
- Stage 2: Modern PHP and object-oriented design
- Stage 3: The PHP ecosystem: Composer, PSRs, testing, static analysis
- Stage 4: Web fundamentals, databases and security
- Stage 5: Pick a framework: Laravel or Symfony
- Stage 6: Production PHP
- Stage 7: Mastery
- Laravel vs Symfony: detailed comparison
- What changed in each PHP 8 release
- Best free resources (curated)
- Paid resources worth considering
- Tools of a professional PHP developer
- Project ideas by level
- Common mistakes to avoid
- FAQ
- Where to go next
- Contributing
Who this roadmap is for
| You are… | Start at | Realistic time to “job-ready” |
|---|---|---|
| New to programming | Stage 0 | 6-9 months at ~10 h/week |
| A developer in another language (JS, Python, Java) | Stage 1, skim; focus on Stage 2-3 | 2-4 months |
| A PHP 5/7-era developer returning | Stage 2 + “What changed” section | 4-6 weeks |
| A WordPress developer moving to app development | Stage 2, then Stage 5 | 2-3 months |
| A working Laravel/Symfony dev aiming for senior | Stage 6-7 | Ongoing |
“Job-ready” here means: you can build a CRUD web app with authentication, tests and a database, deploy it, and read other people’s PHP code without panic. Time estimates assume consistent practice, not passive video watching.
PHP in late 2026: the state of things
Supported versions (from the official supported versions page):
| Branch | Released | Active support until | Security fixes until | Use it? |
|---|---|---|---|---|
| 8.2 | Dec 2022 | Dec 2024 | 31 Dec 2026 | Upgrade now; security support ends this month |
| 8.3 | Nov 2023 | Dec 2025 | Dec 2027 | OK for existing apps (Laravel 13 minimum) |
| 8.4 | Nov 2024 | Dec 2026 | Dec 2028 | Good (Symfony 8.x minimum) |
| 8.5 | Nov 2025 | Dec 2027 | Dec 2029 | Best pick for new production apps today |
| 8.6 | 19 Nov 2026 | Dec 2028 | Dec 2030 | Use for learning; production once your libraries support it |
Best pick for learners: install PHP 8.5 or 8.6. Everything in this roadmap works on 8.5; the 8.6-only features are labeled.
Frameworks:
- Laravel 13 was released in March 2026 and requires PHP 8.3+. Highlights include PHP attributes for model configuration, a first-party AI SDK, and passkey support in the starter kits (release notes). Laravel ships one major version per year.
- Symfony 8.2 (November 2026) is the current stable release and requires PHP 8.4+. Symfony 7.4 is the current LTS (bug fixes until November 2028, security fixes until November 2029). Check symfony.com/releases for the live table.
Runtime: FrankenPHP, a modern PHP app server built on Caddy, became officially supported by the PHP Foundation in 2025 (announcement), and its repository now lives at github.com/php/frankenphp. PHP-FPM behind Nginx remains the most common setup.
The roadmap at a glance
Stage 0 Environment 1-2 days PHP 8.5+, Composer, editor, Git
Stage 1 Fundamentals 3-5 weeks syntax, types, arrays, functions, files, forms
Stage 2 Modern PHP + OOP 4-6 weeks classes, interfaces, enums, readonly, attributes, SOLID
Stage 3 Ecosystem 3-4 weeks Composer, PSR-4, PHPUnit/Pest, PHPStan, CS tools
Stage 4 Web + DB + security 3-5 weeks HTTP, sessions, PDO, SQL, OWASP Top 10
Stage 5 Framework 6-10 weeks Laravel OR Symfony, build 2-3 real apps
Stage 6 Production ongoing deploys, queues, caching, profiling, upgrades
Stage 7 Mastery ongoing architecture, internals, open source, async PHP
Total to a solid junior/mid level: roughly 5-8 months at 10-15 hours a week.
Stage 0: Set up a modern PHP environment (1-2 days)
Goal: run php -v and composer -V and see current versions; run a script from your editor.
| OS | Easiest option | Notes |
|---|---|---|
| macOS | Laravel Herd (free tier) or Homebrew brew install php composer |
Herd bundles PHP versions, Nginx and DNS for local sites; also fine for non-Laravel PHP |
| Windows | Laravel Herd for Windows, or WSL2 + Ubuntu (WSL install guide) | WSL2 gives you the same Linux environment you will deploy to |
| Linux | Your distro’s packages or the Ondřej Surý PPA on Ubuntu; Composer from getcomposer.org | Check that your distro ships 8.4+ |
| Any (containers) | DDEV or Laravel Sail (docs) | Docker-based, reproducible, great for teams |
Editor:
- PhpStorm (paid; free for students and for some open-source maintainers) is the most complete PHP IDE.
- VS Code with Intelephense (free core, paid premium features) or Phpactor (free, open source) is an excellent free setup.
Checklist:
php -vshows 8.5.x or 8.6.xcomposer -Vworks- Git installed and configured
- Your editor shows type errors and “go to definition” works
- You know 3v4l.org exists: it runs a snippet on many PHP versions at once, which is the fastest way to check “does this work on 8.3?”
Stage 1: PHP fundamentals (3-5 weeks)
Goal: write small command-line and web scripts confidently.
What to learn
- Running PHP: CLI (
php script.php), built-in server (php -S localhost:8000), the<?phptag - Variables, scalar types (
int,float,string,bool),null - Strings: interpolation, heredoc/nowdoc, the
mb_*functions for Unicode - Arrays: indexed vs associative,
foreach,array_map,array_filter,array_reduce, sorting, destructuring ([$a, $b] = ...) - Control flow:
if,match(prefer overswitch), loops - Functions: type declarations, return types, default values, named arguments, variadics, closures and arrow functions (
fn($x) => $x * 2) declare(strict_types=1);and why you should put it at the top of every file- Errors and exceptions:
try/catch/finally,Throwable,ErrorvsException - Files and JSON:
file_get_contents,json_encode/json_decodewithJSON_THROW_ON_ERROR - Superglobals and forms:
$_GET,$_POST,$_SERVER, and why you never trust them - Including files:
require,require_once, and then why Composer’s autoloader replaces most of this
A taste of modern PHP
<?php
declare(strict_types=1);
enum Status: string
{
case Draft = 'draft';
case Published = 'published';
}
final readonly class Post
{
public function __construct(
public string $title,
public Status $status = Status::Draft,
) {}
}
$posts = [
new Post('Hello PHP 8.5', Status::Published),
new Post('Draft ideas'),
];
$published = array_filter($posts, fn (Post $p) => $p->status === Status::Published);
echo array_first($published)?->title ?? 'none', PHP_EOL; // array_first() is PHP 8.5+
Best free resources for Stage 1
| Resource | Format | Why it’s good |
|---|---|---|
| PHP Manual: language reference | Docs | The source of truth; user notes are mixed in quality, the main text is excellent |
| Laravel Learn: PHP Fundamentals | Video, 10 short lessons, free | Official, modern-PHP focused, very short |
| Laracasts: PHP for Beginners | Video series by Jeffrey Way (50 episodes, ~10.7 h) | Builds a small app from scratch, explains the “why” |
| Program With Gio (YouTube) | Video course “Learn PHP The Right Way” | Long, free, covers beginner to advanced topics |
| Exercism PHP track | Exercises with optional mentoring | Free, real feedback, test-driven |
| Codewars | Kata (puzzles) | Good for array/string fluency |
Best pick: read the manual sections as reference, watch one video series end to end (Laracasts PHP for Beginners or Program With Gio), and do 20+ Exercism exercises.
Stage 1 exercises
- A CLI tip calculator that reads arguments from
$argvand validates them. - A word-frequency counter: read a text file, output the top 10 words as a table.
- A JSON-backed to-do list for the CLI (
add,list,done). - A contact form page served with
php -Sthat validates input and shows errors without losing what the user typed. - A temperature converter using
matchand enums.
You’re done with Stage 1 when you can write a 100-line script without looking up basic syntax, and you know what strict_types changes.
Stage 2: Modern PHP and object-oriented design (4-6 weeks)
Goal: write clean, typed, object-oriented PHP the way current frameworks expect.
What to learn
Core OOP (manual chapter):
- Classes, constructors, constructor property promotion
- Visibility (
public,protected,private) and asymmetric visibility (PHP 8.4:public private(set)) - Interfaces, abstract classes, traits (and when not to use traits)
- Static members and late static binding (
static::) final,readonlyproperties and readonly classes- Enums (pure and backed), enum methods and interfaces (manual)
- Attributes (
#[...]), the metadata system used by Symfony, Doctrine, PHPUnit and Laravel 13 (manual) - Property hooks (PHP 8.4) for computed and validated properties
- First-class callable syntax (
strlen(...)), the pipe operator|>(8.5), partial function application with?placeholders (8.6) - Type system: union, intersection and DNF types,
never,mixed,staticreturn type (manual) - Namespaces and autoloading
Design:
- Composition over inheritance
- Dependency injection (passing collaborators in, not
new-ing them inside) - SOLID principles, explained with your own examples
- Value objects and immutability (the “with-er” pattern;
clonewith property overrides in 8.5) - Common patterns you will meet in frameworks: Strategy, Factory, Repository, Decorator, Observer/Event, Middleware/Pipeline
Example: property hooks and asymmetric visibility (PHP 8.4+)
final class Temperature
{
public private(set) float $celsius;
public float $fahrenheit {
get => $this->celsius * 9 / 5 + 32;
}
public function __construct(float $celsius)
{
if ($celsius < -273.15) {
throw new InvalidArgumentException('Below absolute zero');
}
$this->celsius = $celsius;
}
}
$t = new Temperature(21.5);
echo $t->fahrenheit; // 70.7
// $t->celsius = 5; // Error: cannot modify private(set) property
Example: pipe operator (8.5) and partial application (8.6)
// PHP 8.5: pipe operator
$slug = ' Hello Modern PHP '
|> trim(...)
|> strtolower(...)
|> (fn (string $s) => preg_replace('/\s+/', '-', $s));
// "hello-modern-php"
// PHP 8.6: partial function application with ? placeholders
$isModern = version_compare(?, '8.4', '>=');
$modern = array_filter(['7.4', '8.3', '8.5', '8.6'], $isModern);
Resources for Stage 2
| Resource | Cost | Notes |
|---|---|---|
| PHP: The Right Way | Free | Community-maintained overview of best practices; read it end to end once |
| php.watch version guides | Free | Clear per-feature write-ups for every PHP release |
| Stitcher.io: What’s new in PHP 8.5 | Free | Brent Roose’s yearly “what’s new” posts are some of the clearest explanations |
| PHP Annotated (YouTube) | Free | JetBrains’ PHP channel: release overviews and deep dives |
| Matthias Noback’s books | Paid | Object Design Style Guide and Advanced Web Application Architecture are excellent for this stage and later |
Stage 2 exercises
- Model a library:
Book,Member,Loanas classes;LoanStatusas a backed enum; loans as immutable value objects. - Build a
Moneyvalue object (integer cents + currency) withadd,subtract,allocateand equality. Never use floats for money. - Write a tiny dependency injection container that resolves constructor dependencies with Reflection. (Then appreciate what Laravel and Symfony do for you.)
- Implement a middleware pipeline: a list of callables that each receive a request and a
$next. - Rewrite an old procedural script from Stage 1 into classes with interfaces and tests.
Stage 3: The PHP ecosystem: Composer, PSRs, testing, static analysis (3-4 weeks)
Goal: work like a professional PHP developer: packages, autoloading, tests, and automated code quality.
Composer and Packagist
composer init,require,require --dev,updatevsinstall, why you commitcomposer.lockfor apps- Semantic versioning constraints (
^,~) - PSR-4 autoloading in
composer.json(PSR-4) - Scripts (
composer test), and optimized autoloaders for production (guide) - Finding packages on Packagist; judging them by maintenance, downloads, open issues and tests
- Well-maintained general-purpose packages from The PHP League
PHP-FIG standards (PSRs)
PHP-FIG publishes interoperability standards. The ones you’ll meet most:
| Standard | What it is |
|---|---|
| PSR-4 | Autoloading: namespace to directory mapping |
| PER Coding Style | The current coding style standard (PER-CS), successor to PSR-12 |
| PSR-3 | Logger interface |
| PSR-7 / PSR-17 | HTTP message interfaces and factories (PSR-7) |
| PSR-11 | Container interface |
| PSR-15 | HTTP middleware and handlers (PSR-15) |
| PSR-18 | HTTP client interface |
Testing
| Tool | Style | Best for |
|---|---|---|
| PHPUnit | Classic xUnit classes, attributes like #[Test], #[DataProvider] |
Every PHP project; the foundation |
| Pest | Expressive function-based syntax on top of PHPUnit | Laravel projects and anyone who likes it('does x') style |
| Infection | Mutation testing | Checking that your tests actually catch bugs |
Best pick: learn PHPUnit’s concepts first (assertions, data providers, test doubles), then use Pest if your team does. Pest runs on PHPUnit, so the knowledge transfers.
Static analysis and code style
| Tool | What it does | Notes |
|---|---|---|
| PHPStan | Finds bugs without running code | Start at a low rule level and raise it over time; use a baseline for legacy code |
| Psalm | Static analysis with strong type inference and taint analysis | Alternative or complement to PHPStan |
| Rector | Automated refactoring and upgrades | Upgrades PHP versions and frameworks for you; review its diffs |
| PHP CS Fixer | Fixes code style | Common in Symfony projects |
| Laravel Pint | Zero-config style fixer built on PHP CS Fixer | Default in Laravel |
| PHP_CodeSniffer | Detects and fixes standards violations | Common in WordPress and Drupal |
| Deptrac | Enforces architectural layer rules | Useful once your app has layers |
Debugging
- Xdebug for step debugging, profiling and code coverage. Learning to set a breakpoint saves hours of
var_dump(). dump()/dd()from Symfony’s VarDumper (also used by Laravel).
Stage 3 project
Publish a small, well-tested library (even if only to your own GitHub): for example a slug generator, a Money package, or a CSV-to-JSON converter. Requirements:
- PSR-4 autoloading,
composer.jsonwith proper constraints - PHPUnit or Pest tests, 90%+ coverage of logic
- PHPStan at level 8 or higher with no errors
- Code style enforced by a fixer
- A README with installation and usage
- A
composer testscript that runs everything
Stage 4: Web fundamentals, databases and security (3-5 weeks)
Goal: understand what your framework will hide from you, so you can debug it.
HTTP and the request lifecycle
- Requests, responses, methods, status codes, headers, cookies
- How PHP runs per request (shared-nothing) under PHP-FPM, and how long-running servers (FrankenPHP worker mode, RoadRunner, Swoole, Laravel Octane) change that
- Sessions and cookies; why
session_regenerate_id()after login matters - Building a tiny router and front controller yourself once; Symfony’s free tutorial Create your own PHP Framework walks through exactly this with Symfony components
Databases
- SQL basics:
SELECT,JOIN,GROUP BY, indexes, transactions (see the companion roadmap: How to Master SQL) - PDO: connections, prepared statements, transactions, error mode
ERRMODE_EXCEPTION - Migrations and seeders (you’ll use your framework’s tools for these later)
- ORMs: Eloquent (Active Record, Laravel) vs Doctrine ORM (Data Mapper, Symfony)
$pdo = new PDO('pgsql:host=localhost;dbname=app', 'app', getenv('DB_PASSWORD'), [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
]);
$stmt = $pdo->prepare('SELECT id, email FROM users WHERE email = :email');
$stmt->execute(['email' => $email]); // never concatenate user input into SQL
$user = $stmt->fetch();
Security essentials
| Threat | Defense in PHP |
|---|---|
| SQL injection | Prepared statements / ORM query builders only |
| XSS | Escape output (htmlspecialchars($s, ENT_QUOTES, 'UTF-8'), or Blade/Twig auto-escaping) |
| CSRF | Framework CSRF tokens on every state-changing form |
| Password storage | password_hash() / password_verify() (never md5/sha1) |
| Session fixation | Regenerate session ID on login; secure, HttpOnly, SameSite cookies |
| File uploads | Validate MIME type and size, store outside web root, generate your own filenames |
| Secrets | Environment variables, never in Git |
| Dependencies | composer audit in CI |
Read: PHP manual security chapter, the OWASP Top 10, and the OWASP PHP Configuration Cheat Sheet.
Stage 4 project
Build a framework-free mini blog: front controller, router, PDO repository classes, templates with escaping, login with password_hash, CSRF protection, and PHPUnit tests. It will be clunky. That’s the point: in Stage 5 you’ll see exactly what a framework gives you.
Stage 5: Pick a framework: Laravel or Symfony (6-10 weeks)
You don’t need both at first. Read the comparison below, pick one, and build at least two real projects.
Path A: Laravel 13
Learn in this order:
- Routing, controllers, Blade views, request validation
- Eloquent ORM: models, relationships, eager loading (and the N+1 problem), scopes, casts (docs)
- Migrations, factories, seeders
- Authentication via a starter kit (React, Vue, Svelte or Livewire variants); API tokens with Sanctum
- Authorization: gates and policies
- Queues, jobs and scheduling (docs); Horizon for Redis queues
- Events, listeners, notifications, mail
- Testing with Pest/PHPUnit: HTTP tests, database refresh, fakes (
Mail::fake(),Queue::fake()) - Front-end choice: Livewire (server-driven UI), Inertia (React/Vue/Svelte with Laravel routing), or a separate SPA/API
- Admin panels: Filament (free, open source)
- AI features: the Laravel AI SDK and Laravel Boost for AI coding assistants
Best Laravel learning resources:
| Resource | Cost | Notes |
|---|---|---|
| Laravel documentation | Free | Famously readable; read it cover to cover once |
| Laravel Learn | Free | Official mini courses, including “Getting Started with Laravel” (13 lessons) |
| Laracasts | Some free, most paid subscription | “Laravel From Scratch (2026 Edition)”; Laracasts is the deepest Laravel video library |
| Laravel Daily (YouTube) and laraveldaily.com | Free videos, paid courses | Practical tips, code reviews, real-world patterns |
| Laravel News | Free | Release coverage and tutorials |
| Official Laravel YouTube | Free | Release streams and Laracon talks |
| awesome-laravel | Free | Community link list |
Path B: Symfony 8.2 (or 7.4 LTS)
Learn in this order:
- Installation with the Symfony CLI, project structure, the console (setup docs)
- Routing with attributes, controllers, Twig templates
- Services and the dependency injection container, autowiring and autoconfiguration
- Doctrine ORM: entities, repositories, migrations, relations
- Forms and validation
- Security: authenticators, voters, password hashing, login throttling
- Messenger for async work and queues (docs)
- Events and the kernel request lifecycle
- Testing: WebTestCase, KernelTestCase, functional tests with a test database
- APIs with API Platform
- Front end: Symfony UX, Stimulus, Turbo, AssetMapper (no Node build step required)
Best Symfony learning resources:
| Resource | Cost | Notes |
|---|---|---|
| Symfony documentation | Free | Thorough, versioned per release |
| Symfony: The Fast Track | Free online (CC BY-NC-SA 4.0) | Book by Symfony’s creator Fabien Potencier; builds one app end to end |
| Symfony Best Practices | Free | Short and opinionated |
| SymfonyCasts | Some free, most paid subscription | The main Symfony video course library |
| SymfonyCasts on YouTube | Free | Samples and talks |
| awesome-symfony | Free | Community link list (check dates; some entries are old) |
Stage 5 projects (pick two)
- Job board: companies post jobs, candidates apply with a file upload, admins moderate. Queued email notifications, policies/voters, full-text search.
- Multi-tenant SaaS starter: teams, invitations, roles, billing integration (in test mode), per-team data isolation.
- REST/JSON API for a mobile app: token auth, pagination, filtering, rate limiting, OpenAPI docs, versioning.
- Real-time dashboard: WebSockets (Laravel Reverb or Mercure in Symfony), background jobs feeding live updates.
Each project should have: feature tests, a seeded demo database, CI running tests + static analysis, and a deployed URL.
Stage 6: Production PHP (ongoing)
Deployment options
| Option | Effort | Good for |
|---|---|---|
| Shared hosting | Very low | Small sites; often limited PHP versions and no queues |
| VPS + Nginx + PHP-FPM | Medium | Learning how servers work; cheap and flexible |
| VPS + FrankenPHP | Medium | Single binary with HTTPS, HTTP/3 and a worker mode |
| Laravel Cloud / Forge (paid) | Low | Laravel apps, managed servers or fully managed platform |
| Platform.sh / Upsun, others (paid) | Low | Symfony-friendly managed hosting |
| Containers (Docker + any orchestrator) | Medium-high | Teams with existing container infrastructure (see How to Master Docker) |
Production checklist
- OPcache enabled and tuned (manual);
opcache.validate_timestamps=0with cache reset on deploy - Composer
install --no-dev --optimize-autoloader(or--classmap-authoritative) - Framework caches built (
php artisan optimize/bin/console cache:warmup) display_errors=Off, errors logged; an error tracker in place- Queues run under a process supervisor (systemd, Supervisor) and restart on deploy
- Zero-downtime deploys (atomic symlink switch, or container rollout)
- Database migrations are backwards compatible with the previous release
- Backups tested by actually restoring them
composer auditand dependency updates on a schedule- A PHP upgrade plan: you’ll do one every year or two, and Rector makes it much easier
Performance
- Measure first: Xdebug profiler locally; an APM or profiler in production
- Fix N+1 queries (eager loading), add database indexes, cache expensive computations (Redis)
- Long-running workers (Octane, FrankenPHP worker mode, RoadRunner) remove per-request bootstrapping cost, but you must avoid leaking state between requests
- Async/event-loop PHP with ReactPHP or AMPHP for high-concurrency I/O; PHP 8.6’s new
Io\PollAPI is designed as a foundation for these libraries
Stage 7: Mastery (ongoing)
What separates senior PHP developers:
- Architecture: hexagonal/ports-and-adapters, DDD tactical patterns where they pay off, modular monoliths, enforcing boundaries with Deptrac
- Legacy rescue: characterization tests, strangler-fig migrations, Rector-driven upgrades from PHP 7 to 8.x
- Type-level rigor: PHPStan at max level with generics in PHPDoc (
@template), no baseline - Language internals: read RFCs on the PHP wiki, follow the php-src repository, understand zvals, copy-on-write, the garbage collector and OPcache/JIT at a high level
- Open source: contribute fixes to packages you use; maintain one of your own
- Teaching: write about what you learned; explaining exposes the gaps
Support the language: The PHP Foundation funds core developers.
Laravel vs Symfony: detailed comparison
| Laravel 13 | Symfony 8.2 / 7.4 LTS | |
|---|---|---|
| Philosophy | Convention, developer happiness, batteries included | Explicit configuration, reusable decoupled components |
| Release cycle | One major per year; ~18 months bug fixes, 2 years security | Minor every 6 months; LTS every 2 years with 3 years bug fixes + 1 year security |
| Minimum PHP | 8.3 | 8.4 (8.x), 8.2 (7.4 LTS) |
| ORM | Eloquent (Active Record) | Doctrine (Data Mapper) |
| Templates | Blade | Twig |
| Async jobs | Queues + Horizon | Messenger |
| Real-time | Reverb (WebSockets) | Mercure |
| Admin | Filament (community), Nova (paid) | EasyAdmin, Sonata |
| APIs | API resources, Sanctum, JSON:API support | API Platform |
| Learning curve | Gentler start | Steeper start, very predictable later |
| Ecosystem | Huge first-party ecosystem (paid hosting products plus free packages) | Components used across PHP (Laravel itself uses many Symfony components) |
| Typical users | Startups, agencies, SaaS, solo developers | Enterprises, long-lived apps, public sector, API platforms |
Best pick:
- Choose Laravel if you want to ship products fast, are freelancing or joining a startup, or are learning alone. The docs, starter kits and community make the first months smoother.
- Choose Symfony if you’re targeting enterprise/European agency jobs, long-lived systems, or want to understand architecture deeply. Symfony’s explicitness teaches transferable design skills.
- Check job listings in your city before deciding; demand varies a lot by region.
Either way, Symfony components (HttpFoundation, Console, VarDumper, Mailer and more) are inside Laravel, so knowledge transfers.
What changed in each PHP 8 release
Useful if you’re returning from PHP 7 or reading older tutorials.
| Version | Headline features |
|---|---|
| 8.0 (2020) | JIT, named arguments, attributes, union types, match, nullsafe ?->, constructor property promotion |
| 8.1 (2021) | Enums, readonly properties, fibers, first-class callable syntax, never, intersection types, new in initializers |
| 8.2 (2022) | Readonly classes, DNF types, standalone null/false/true types, deprecation of dynamic properties |
| 8.3 (2023) | Typed class constants, #[\Override], json_validate(), dynamic class constant fetch |
| 8.4 (2024) | Property hooks, asymmetric visibility, new without parentheses in chains, array_find() and friends, lazy objects, HTML5-compliant DOM API |
| 8.5 (2025) | Pipe operator |>, URI extension, clone() with property overrides, #[\NoDiscard], closures in constant expressions, array_first()/array_last(), persistent cURL share handles |
| 8.6 (2026) | Partial function application (? placeholders), \Time\Duration, Io\Poll polling API, clamp(), SortDirection enum, readonly property defaults |
Sources: official release pages for 8.5 and 8.6, plus migration guides (8.4, 8.5, 8.6). For a friendly per-feature walkthrough, see php.watch/versions/8.6.
Upgrading old code? Run Rector with the PHP-version set for your target, then PHPStan, then your tests, one minor version at a time.
Best free resources (curated)
Documentation and references
- PHP Manual
- PHP: The Right Way
- Composer docs
- PHP-FIG PSRs
- php.watch: per-version feature guides
- PHP RFCs: what’s coming next and why
- roadmap.sh PHP and roadmap.sh Laravel: visual checklists to compare against this guide
Courses and video
- Laravel Learn (official, free)
- Laracasts: PHP for Beginners
- Program With Gio
- Laravel Daily
- PHP Annotated by JetBrains
Free books
- Symfony: The Fast Track (free online, CC BY-NC-SA 4.0)
- PHP: The Right Way (free, community)
Practice
- Exercism PHP track
- Codewars
- 3v4l.org for experiments across versions
Community and news
- Laravel News
- PHP Weekly newsletter
- php[architect] magazine (paid subscription, some free content)
- awesome-php: a large curated list of PHP libraries
Paid resources worth considering
All paid; listed because they’re widely recommended, not because anyone paid for placement.
| Resource | Type | Best for |
|---|---|---|
| Laracasts subscription | Video | Laravel and modern PHP, beginner to advanced |
| SymfonyCasts subscription | Video | Symfony, Doctrine, API Platform |
| Matthias Noback’s books | Books | Object design, architecture, testing |
| PhpStorm | IDE | Daily productivity (free for students) |
| php[architect] | Magazine/books | Ongoing professional reading |
Tools of a professional PHP developer
| Category | Tools |
|---|---|
| Local environment | Laravel Herd, DDEV, Laravel Sail, Docker |
| Editor | PhpStorm, VS Code + Intelephense/Phpactor |
| Packages | Composer, Packagist |
| Testing | PHPUnit, Pest, Infection |
| Static analysis | PHPStan, Psalm |
| Refactoring/upgrades | Rector |
| Code style | PHP CS Fixer, Laravel Pint, PHP_CodeSniffer |
| Debugging | Xdebug, VarDumper |
| Servers | Nginx + PHP-FPM, FrankenPHP, RoadRunner, Swoole |
| Async | ReactPHP, AMPHP |
| Docs | phpDocumentor (phpdoc.org) |
| CMS world | WordPress developer resources, Drupal |
| Desktop/mobile | NativePHP |
Project ideas by level
Beginner
- Guestbook with file or SQLite storage and output escaping
- URL shortener with click counts
- Markdown notes app (use a Markdown package via Composer)
- Weather CLI that calls a public API with an HTTP client and caches responses
Intermediate
- Blog with admin panel (framework, auth, roles, image uploads, tags, search)
- Expense splitter (groups, balances,
Moneyvalue objects, settlement algorithm) - Webhook relay (receive, verify signatures, queue, retry with backoff)
- Booking system (time slots, overlapping-reservation prevention with database constraints and transactions)
Advanced
- Multi-tenant SaaS with billing in test mode, feature flags and audit logs
- Event-sourced ledger with projections and replay
- High-throughput API on Octane or FrankenPHP worker mode, load-tested, with a written performance report
- Open-source package with docs, CI, semantic releases and real users
Common mistakes to avoid
- Learning from 2012-era tutorials. If you see
mysql_query(), no type declarations, orextract($_POST), close the tab. - Skipping
strict_types. Silent type juggling hides bugs. - Floats for money. Use integer minor units or a decimal library.
- Concatenating SQL. Always bind parameters.
- Fat controllers. Move logic into actions/services; controllers should coordinate, not compute.
- N+1 queries. Eager-load relationships; turn on lazy-loading prevention in development (Laravel’s
Model::preventLazyLoading()). - No tests “because it’s just CRUD”. Feature tests for CRUD are cheap and catch regressions in validation and authorization.
- Ignoring static analysis. PHPStan catches whole classes of bugs before runtime.
- Staying on unsupported PHP. 8.2 loses security support on 31 December 2026.
- Tutorial hell. After each course, build something without following along.
FAQ
Is PHP still worth learning in 2027? Yes, if you want web development work. PHP runs WordPress (a huge share of all websites), Drupal, Magento and a large number of Laravel and Symfony applications, so there’s steady demand for maintenance and new builds. It’s also one of the fastest ways to go from idea to deployed web app.
How long does it take to learn PHP? Basics: 3-5 weeks. Job-ready with a framework: about 5-8 months at 10-15 hours/week for a new programmer, or 2-4 months if you already know another language.
Should I learn PHP or JavaScript/Node first? You’ll need some JavaScript for the front end anyway. If your goal is server-side web apps and freelancing (especially WordPress or Laravel), PHP first is a fine choice.
Laravel or Symfony first? Laravel if you want the gentlest start and fastest shipping; Symfony if you’re targeting enterprise teams or want explicit architecture. See the comparison.
Do I need to learn plain PHP before Laravel? Yes, at least Stages 1-2. Frameworks are much easier to debug when you know the language and the request lifecycle underneath.
Which PHP version should I install? PHP 8.5 for production work right now; 8.6 for learning the newest features. Avoid 8.2 and older for new work.
Is PHP slow? Modern PHP with OPcache is fast for typical web workloads, and long-running servers (FrankenPHP worker mode, Octane, RoadRunner) remove most bootstrapping overhead. Database queries and network calls usually dominate response time, not the language.
Is WordPress development “real” PHP? Yes, and it’s a large job market. Modern WordPress plugin development benefits from everything in Stages 2-3 (Composer, namespaces, tests, static analysis).
What about PHP 9? No PHP 9 release has been announced on php.net as of this review. Follow the RFC list for proposals.
Can I use AI coding assistants for PHP? Yes, but verify output against the docs and run your tests and PHPStan. Assistants often suggest outdated patterns from older PHP versions. Laravel Boost exists specifically to give assistants current, version-aware Laravel context.
Where to go next
- Databases in depth: How to Master SQL
- Version control: How to Master Git
- Servers: How to Master Linux
- Containers and deployment: How to Master Docker
- Front end: pick React, Vue or Svelte for Inertia, or go deep on Livewire / Symfony UX
- Testing culture: practice test-driven development on your next feature, start to finish
Contributing
Found a broken link, an outdated version number, or a great free resource that’s missing? Open an issue or pull request. Please:
- Link only to legal, official or author-hosted resources
- Mark paid resources as paid
- Explain in one line why a resource belongs here
- Keep the tone practical and the writing your own
If this helped you, a star helps others find it.
License
Content licensed under CC BY 4.0. You may share and adapt it with attribution.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.