Read something useful
Explore the complete course below. Every lesson is free to read, share, and revisit.
A practical, free PHP course
Learn PHP one useful idea at a time. Clear lessons, small challenges, and a place to try things out.
Your pace. Your next step.
Build dynamic web applications with modern PHP 8+. Learn named arguments, fibers, enums, and Laravel fundamentals through hands-on exercises and a free code playground.
Explore the complete course below. Every lesson is free to read, share, and revisit.
Predict what happens, put a solution in order, or spot a bug. Short sessions work on your phone.
Open the Code lab when you have a keyboard handy. Run real code and see your ideas take shape.
Browse the complete ordered curriculum. Each lesson has a readable page you can link to and share.
Start learning PHP from scratch. Understand why PHP powers millions of websites and write your first server-side script.
Learn PHP variables and data types including strings, integers, floats, booleans, and type casting for type-safe PHP development.
Learn PHP functions with typed parameters, return types, closures, and arrow functions. Build reusable code blocks for any project.
Learn PHP control flow with if/else, switch, match expressions, and loops. Build programs that make decisions and iterate over data.
Master PHP arrays and objects for organizing complex data. Learn indexed arrays, associative arrays, array_map, filter, and reduce.
Master PHP object-oriented programming with classes, inheritance, abstract classes, interfaces, and constructor promotion.
Learn PHP error handling with try/catch/finally, custom exception classes, and error reporting for production-ready applications.
Connect to databases with PHP PDO. Learn CRUD operations, prepared statements, parameter binding, and transactions for safe data access.
Learn PHP file handling to read, write, and manage files and directories. Process CSV uploads, handle file streams, and manage paths.
Manage user state with PHP sessions and cookies. Build login systems, shopping carts, and flash messages across HTTP requests.
Get started with Laravel, PHP's most popular framework. Learn routing, controllers, Blade templates, and Eloquent ORM basics.
Build RESTful APIs with PHP using proper HTTP methods, JSON responses, request routing, and input validation patterns.
Implement secure PHP authentication with password hashing, CSRF protection, XSS prevention, and SQL injection defense.
Deploy PHP applications to production. Learn Composer autoloading, environment config, PHP-FPM, nginx, error logging, and opcache.
Build a complete blog system with PHP combining authentication, CRUD operations, SQLite database, templates, and a REST API.
Master PHP string functions for searching, formatting, transforming, and parsing text data in web applications.
Explore PHP 8 features including match expressions, named arguments, union types, nullsafe operator, and constructor promotion.
Learn Composer, PHP's dependency manager. Install packages, manage versions, configure autoloading, and structure modern PHP projects.
Learn PHP testing with PHPUnit. Write test classes, use assertions, data providers, and mocking for reliable, maintainable code.
Learn classic design patterns in PHP including Singleton, Factory, Observer, and Strategy with practical, real-world examples.
Learn safe PHP form processing. Read input data, sanitize and validate user submissions, and return meaningful error messages.
Separate PHP logic from HTML with templating patterns. Build reusable layouts, partials, and a minimal template engine from scratch.
Implement background job queues in PHP with job interfaces, workers, retry logic, and priority scheduling for async task processing.
Learn PHP caching strategies from in-memory arrays to file-based caches. Master TTL expiration, cache invalidation, and profiling.
Design production-grade REST APIs in PHP with consistent response structures, proper HTTP semantics, error handling, and versioning.