Programming Languages

Best PHP Books

10books
1top picks

Editor's top PHP books

1
Cover of Laravel: Up & Running: A Framework for Building Modern PHP Apps
BeginnerPaid★ Top Pick

Laravel: Up & Running: A Framework for Building Modern PHP Apps

Matt Stauffer · O'Reilly · 548 pages · ~14 hrs to read

★★★★★5.01 Google ratings

The standard onboarding book for Laravel — routing, Eloquent, testing, queues, and Blade covered with depth a tutorial series can't match. Kept current through major Laravel releases; the latest edition covers Laravel 11.

PHP Books for Beginners

4
Cover of Laravel: Up & Running: A Framework for Building Modern PHP Apps
BeginnerPaid★ Top Pick

Laravel: Up & Running: A Framework for Building Modern PHP Apps

Matt Stauffer · O'Reilly · 548 pages · ~14 hrs to read

★★★★★5.01 Google ratings

The standard onboarding book for Laravel — routing, Eloquent, testing, queues, and Blade covered with depth a tutorial series can't match. Kept current through major Laravel releases; the latest edition covers Laravel 11.

Cover of PHP & MySQL: Novice to Ninja
BeginnerPaid

PHP & MySQL: Novice to Ninja

Tom Butler & Kevin Yank · SitePoint0

A friendlier on-ramp than the official docs for developers with no backend experience — builds a real content management system from scratch while covering sessions, cookies, and basic security along the way.

Cover of Head First PHP & MySQL: A Brain-Friendly Guide
BeginnerPaid

Head First PHP & MySQL: A Brain-Friendly Guide

Lynn Beighley & Michael Morrison · O'Reilly · 814 pages · ~20 hrs to read

The visually heavy Head First format applied to PHP and MySQL fundamentals — form handling, sessions, and queries taught through exercises rather than prose. A gentler on-ramp for readers who bounce off dense reference books.

Cover of Learning PHP, MySQL & JavaScript: A Step-by-Step Guide to Creating Dynamic Websites
BeginnerPaid

Learning PHP, MySQL & JavaScript: A Step-by-Step Guide to Creating Dynamic Websites

Robin Nixon · O'Reilly · 655 pages · ~16 hrs to read

Teaches the full classic LAMP stack together instead of PHP in isolation — useful for developers building a complete dynamic site who need MySQL and JavaScript context alongside the PHP itself.

Intermediate & Advanced PHP Books

6
IntermediatePaid

Modern PHP

O'Reilly

Josh Lockhart's book changed how many developers think about PHP. Covers namespaces, traits, generators, Composer, and testing — the tools that transformed PHP from a scripting language into a serious platform. Readable in a weekend.

AdvancedPaid

PHP 8 Objects, Patterns, and Practice

Apress / Matt Zandstra

The most thorough treatment of object-oriented PHP and design patterns in the language. Covers SOLID principles, GoF patterns, and PHP-specific architectural patterns. Essential reading for developers building large PHP applications.

Cover of Programming PHP: Creating Dynamic Web Pages
IntermediatePaid

Programming PHP: Creating Dynamic Web Pages

Kevin Tatroe & Peter MacIntyre · O'Reilly · 1129 pages · ~28 hrs to read

★★★★☆4.05 Google ratings

A language-level reference in the O'Reilly mold — PHP's type system, OOP features, and standard library covered thoroughly rather than framework patterns. Useful once Laravel-specific books stop answering "how does PHP itself work."

Cover of PHP Cookbook: Solutions & Examples for PHP Programmers
IntermediatePaid

PHP Cookbook: Solutions & Examples for PHP Programmers

David Sklar & Adam Trachtenberg · O'Reilly · 957 pages · ~24 hrs to read

Recipe-driven answers to specific problems — string parsing, file handling, date arithmetic — that predate and still outlast most Stack Overflow threads on the same questions. Best used as a reference, not read start to finish.

Cover of Clean Code in PHP
IntermediatePaid

Clean Code in PHP

Carsten Windler & Alexandre Daubois · Packt · 264 pages · ~7 hrs to read

Applies clean-code and SOLID principles to PHP idioms and tooling specifically — PHPStan, static analysis, and design patterns as they actually show up in Laravel and Symfony codebases, not abstracted Java examples. Written by a working lead PHP engineer.

Cover of Domain-Driven Design in PHP
AdvancedPaid

Domain-Driven Design in PHP

Carlos Buenosvinos, Christian Soronellas & Keyvan Akbary · 394 pages · ~10 hrs to read

Shows entities, value objects, aggregates, and repositories implemented in actual PHP rather than translated from Evans' Java examples — the practical bridge between DDD theory and a real Symfony or Laravel codebase.