Chapter 1: Setup and PHP 8.5
Setup and PHP 8.5 Fundamentals, Setup and PHP 8.5 Syntax and Structure, Setup and PHP 8.5 Practical Example, Setup and PHP 8.5 Common Mistakes, Setup and PHP 8.5 Best Practices
Open chapterChapter 2: First PHP Script
First PHP Script Fundamentals, First PHP Script Syntax and Structure, First PHP Script Practical Example, First PHP Script Common Mistakes, First PHP Script Best Practices
Open chapterChapter 3: Variables and Constants
Declaring Variables, Initialization, Scope, Constants/Final Values, Naming
Open chapterChapter 4: Scalar Types
Built-in Types, Conversion, Inference, Custom Types, Type Safety
Open chapterChapter 5: Arrays
Creating Arrays, Indexing and Updating, Looping Through Arrays, Multidimensional/Nested Arrays, Array Safety and Performance
Open chapterChapter 6: Operators and Expressions
Arithmetic Operators, Comparison Operators, Logical Operators, Assignment Operators, Precedence
Open chapterChapter 7: Strings
Creating Strings, Searching and Comparing, Transforming Strings, Formatting/Interpolation, String Performance and Safety
Open chapterChapter 8: Conditions and match
if, else if, switch/match, Conditional Expressions, Decision Best Practices
Open chapterChapter 9: Loops
for Loop, while Loop, do/foreach Variants, break/continue, Loop Best Practices
Open chapterChapter 10: Functions
Declaring Functions, Parameters, Return Values, Scope, Function Design
Open chapterChapter 11: Parameters, Return Types, and Named Arguments
Built-in Types, Conversion, Inference, Custom Types, Type Safety
Open chapterChapter 12: Scope and Static Variables
Declaring Variables, Initialization, Scope, Constants/Final Values, Naming
Open chapterChapter 13: include, require, and Project Structure
include, require, and Project Structure Fundamentals, include, require, and Project Structure Syntax and Structure, include, require, and Project Structure Practical Example, include, require, and Project Structure Common Mistakes, include, require, and Project Structure Best Practices
Open chapterChapter 14: Superglobals
Superglobals Fundamentals, Superglobals Syntax and Structure, Superglobals Practical Example, Superglobals Common Mistakes, Superglobals Best Practices
Open chapterChapter 15: HTTP Requests and Responses
HTTP Fundamentals, Requests, Responses, Serialization, Errors and Resilience
Open chapterChapter 16: HTML Forms
HTML Forms Fundamentals, HTML Forms Syntax and Structure, HTML Forms Practical Example, HTML Forms Common Mistakes, HTML Forms Best Practices
Open chapterChapter 17: Validation and Sanitization
Validation and Sanitization Fundamentals, Validation and Sanitization Syntax and Structure, Validation and Sanitization Practical Example, Validation and Sanitization Common Mistakes, Validation and Sanitization Best Practices
Open chapterChapter 18: Cookies
Cookies Fundamentals, Cookies Syntax and Structure, Cookies Practical Example, Cookies Common Mistakes, Cookies Best Practices
Open chapterChapter 19: Sessions
Sessions Fundamentals, Sessions Syntax and Structure, Sessions Practical Example, Sessions Common Mistakes, Sessions Best Practices
Open chapterChapter 20: File System
Opening Files, Reading Data, Writing Data, Paths/Metadata, Resource and Error Handling
Open chapterChapter 21: File Uploads
Opening Files, Reading Data, Writing Data, Paths/Metadata, Resource and Error Handling
Open chapterChapter 22: Date and Time
Date and Time Fundamentals, Date and Time Syntax and Structure, Date and Time Practical Example, Date and Time Common Mistakes, Date and Time Best Practices
Open chapterChapter 23: Regular Expressions
Regular Expressions Fundamentals, Regular Expressions Syntax and Structure, Regular Expressions Practical Example, Regular Expressions Common Mistakes, Regular Expressions Best Practices
Open chapterChapter 24: JSON
JSON Syntax, Encoding, Decoding, Nested Data, Validation and Errors
Open chapterChapter 25: Errors and Exceptions
Throwing Errors, Catching Errors, Finally/Cleanup, Custom Errors, Error-Handling Best Practices
Open chapterChapter 26: Classes and Objects
Declaring Classes, Fields and State, Methods, Constructors, Encapsulation
Open chapterChapter 27: Constructors, Properties, and Methods
Declaring Methods, Parameters, Return Values, Overloading/Overrides, Method Design
Open chapterChapter 28: Inheritance
Base and Derived Types, Overriding, Polymorphism, Protected Members, Composition vs Inheritance
Open chapterChapter 29: Interfaces and Traits
Declaring Interfaces, Implementing Interfaces, Multiple Contracts, Default/Static Members, Interface Design
Open chapterChapter 30: Namespaces and Autoloading
Namespaces and Autoloading Fundamentals, Namespaces and Autoloading Syntax and Structure, Namespaces and Autoloading Practical Example, Namespaces and Autoloading Common Mistakes, Namespaces and Autoloading Best Practices
Open chapterChapter 31: Composer
Composer Fundamentals, Composer Syntax and Structure, Composer Practical Example, Composer Common Mistakes, Composer Best Practices
Open chapterChapter 32: Enums
Enums Fundamentals, Enums Syntax and Structure, Enums Practical Example, Enums Common Mistakes, Enums Best Practices
Open chapterChapter 33: Attributes
Attributes Fundamentals, Attributes Syntax and Structure, Attributes Practical Example, Attributes Common Mistakes, Attributes Best Practices
Open chapterChapter 34: Closures and Arrow Functions
Declaring Functions, Parameters, Return Values, Scope, Function Design
Open chapterChapter 35: Generators and Iterators
Generators and Iterators Fundamentals, Generators and Iterators Syntax and Structure, Generators and Iterators Practical Example, Generators and Iterators Common Mistakes, Generators and Iterators Best Practices
Open chapterChapter 36: Type System and Union/Intersection Types
Built-in Types, Conversion, Inference, Custom Types, Type Safety
Open chapterChapter 37: Readonly and Modern Object Features
Readonly and Modern Object Features Fundamentals, Readonly and Modern Object Features Syntax and Structure, Readonly and Modern Object Features Practical Example, Readonly and Modern Object Features Common Mistakes, Readonly and Modern Object Features Best Practices
Open chapterChapter 38: Pipe Operator and PHP 8.5 Features
Arithmetic Operators, Comparison Operators, Logical Operators, Assignment Operators, Precedence
Open chapterChapter 39: URI Extension and URL Handling
URI Extension and URL Handling Fundamentals, URI Extension and URL Handling Syntax and Structure, URI Extension and URL Handling Practical Example, URI Extension and URL Handling Common Mistakes, URI Extension and URL Handling Best Practices
Open chapterChapter 40: Clone With and Object Copying
Clone With and Object Copying Fundamentals, Clone With and Object Copying Syntax and Structure, Clone With and Object Copying Practical Example, Clone With and Object Copying Common Mistakes, Clone With and Object Copying Best Practices
Open chapterChapter 41: PDO Database Access
Connecting, Executing Commands, Reading Results, Transactions, Security and Performance
Open chapterChapter 42: MySQL with PHP
SQL Basics, Parameterized SQL, Reading Results, Transactions, Performance and Safety
Open chapterChapter 43: Prepared Statements
Prepared Statements Fundamentals, Prepared Statements Syntax and Structure, Prepared Statements Practical Example, Prepared Statements Common Mistakes, Prepared Statements Best Practices
Open chapterChapter 44: Transactions
ACID Concepts, BEGIN/COMMIT, Rollback, Isolation, Deadlocks and Retry
Open chapterChapter 45: CRUD Application Patterns
CRUD Application Patterns Fundamentals, CRUD Application Patterns Syntax and Structure, CRUD Application Patterns Practical Example, CRUD Application Patterns Common Mistakes, CRUD Application Patterns Best Practices
Open chapterChapter 46: Authentication and Password Hashing
Authentication and Password Hashing Fundamentals, Authentication and Password Hashing Syntax and Structure, Authentication and Password Hashing Practical Example, Authentication and Password Hashing Common Mistakes, Authentication and Password Hashing Best Practices
Open chapterChapter 47: Authorization and Roles
Authorization and Roles Fundamentals, Authorization and Roles Syntax and Structure, Authorization and Roles Practical Example, Authorization and Roles Common Mistakes, Authorization and Roles Best Practices
Open chapterChapter 48: Web Security: XSS, CSRF, SQL Injection
Threat Model, Input Validation, Authentication/Authorization, Secret Handling, Secure Defaults
Open chapterChapter 49: REST APIs
REST APIs Fundamentals, REST APIs Syntax and Structure, REST APIs Practical Example, REST APIs Common Mistakes, REST APIs Best Practices
Open chapterChapter 50: HTTP Clients and cURL
HTTP Fundamentals, Requests, Responses, Serialization, Errors and Resilience
Open chapterChapter 51: Routing and MVC Concepts
Routing and MVC Concepts Fundamentals, Routing and MVC Concepts Syntax and Structure, Routing and MVC Concepts Practical Example, Routing and MVC Concepts Common Mistakes, Routing and MVC Concepts Best Practices
Open chapterChapter 52: Templates and Views
Templates and Views Fundamentals, Templates and Views Syntax and Structure, Templates and Views Practical Example, Templates and Views Common Mistakes, Templates and Views Best Practices
Open chapterChapter 53: Dependency Injection
Dependency Injection Fundamentals, Dependency Injection Syntax and Structure, Dependency Injection Practical Example, Dependency Injection Common Mistakes, Dependency Injection Best Practices
Open chapterChapter 54: Testing PHP Code
Unit Test Basics, Arrange-Act-Assert, Edge Cases, Test Doubles Concepts, Automation and Coverage
Open chapterChapter 55: Logging and Error Reporting
Logging and Error Reporting Fundamentals, Logging and Error Reporting Syntax and Structure, Logging and Error Reporting Practical Example, Logging and Error Reporting Common Mistakes, Logging and Error Reporting Best Practices
Open chapterChapter 56: CLI PHP
CLI PHP Fundamentals, CLI PHP Syntax and Structure, CLI PHP Practical Example, CLI PHP Common Mistakes, CLI PHP Best Practices
Open chapterChapter 57: Performance, OPcache, and Caching
Measure First, Find Bottlenecks, Optimize Queries/Code, Memory/Resource Use, Benchmark Again
Open chapterChapter 58: Framework Concepts: Laravel and Symfony
Framework Concepts: Laravel and Symfony Fundamentals, Framework Concepts: Laravel and Symfony Syntax and Structure, Framework Concepts: Laravel and Symfony Practical Example, Framework Concepts: Laravel and Symfony Common Mistakes, Framework Concepts: Laravel and Symfony Best Practices
Open chapterChapter 59: Deployment and Production Configuration
Deployment and Production Configuration Fundamentals, Deployment and Production Configuration Syntax and Structure, Deployment and Production Configuration Practical Example, Deployment and Production Configuration Common Mistakes, Deployment and Production Configuration Best Practices
Open chapterChapter 60: PHP 8.5 Production Capstone
PHP 8.5 Production Capstone Fundamentals, PHP 8.5 Production Capstone Syntax and Structure, PHP 8.5 Production Capstone Practical Example, PHP 8.5 Production Capstone Common Mistakes, PHP 8.5 Production Capstone Best Practices
Open chapter