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)
- Introduction and modern PHP 8.6
- Setting up PHP and your first program
- Language basics, types, and strict mode
- Strings and numbers
- Arrays and functional array operations
- Conditionals and loops
- Functions, closures, and the pipe operator
- Object-oriented PHP
- Constants and backed enums
- Namespaces, Composer, and PSR-4 autoloading
- Errors, exceptions, and Throwable
- Working with dates and times
- Files, directories, and JSON
- Web development fundamentals: HTTP, forms, sessions, and security
- Databases with PDO and SQLite
- Testing, static analysis, and code quality
- Deploying modern PHP apps
- 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.