Skip to content

PHP Handbook

Modern PHP 8 is fast, strictly typed, and powers everything from WordPress to Laravel and Symfony applications.

This handbook covers modern PHP 8.6 from the ground up, from strict types, arrays, OOP, and Composer autoloading to XSS/CSRF-safe web forms, PDO prepared statements, testing, and deployment.

Table of contents (18 chapters)
  1. Introduction and modern PHP 8.6
  2. Setting up PHP and your first program
  3. Language basics, types, and strict mode
  4. Strings and numbers
  5. Arrays and functional array operations
  6. Conditionals and loops
  7. Functions, closures, and the pipe operator
  8. Object-oriented PHP
  9. Constants and backed enums
  10. Namespaces, Composer, and PSR-4 autoloading
  11. Errors, exceptions, and Throwable
  12. Working with dates and times
  13. Files, directories, and JSON
  14. Web development fundamentals: HTTP, forms, sessions, and security
  15. Databases with PDO and SQLite
  16. Testing, static analysis, and code quality
  17. Deploying modern PHP apps
  18. Modern PHP 8.0 to 8.6 quick reference and where to go next

Get the PHP Handbook for free: subscribe to my newsletter and I'll send it your way, together with all my other free programming ebooks.

Want the whole collection? See all my free ebooks.

By subscribing you agree to receive my newsletter (new tutorials, book releases, and courses). You can unsubscribe anytime from the link at the bottom of every email. Your email is the only data collected, stored securely in the EU, and never shared.