Beginner course
PHP Programming
Master PHP from server-side foundations and forms through OOP, databases, security, APIs, modern PHP 8 features, and production optimization.
38 chapters About 1416 minutes 80% to pass
Start learningCourse outline
Learn step by step
01Introduction to PHPExplore PHP history, request execution, server integration, and its web role. 26 min02Environment SetupConfigure XAMPP, LAMP, WAMP, PHP CLI, extensions, and development settings. 32 min03Basic Syntax and StructureUnderstand tags, statements, expressions, output, includes, strict types, and files. 28 min04Variables and Data TypesUse scalars, arrays, objects, resources, null, conversion, and type inspection. 34 min05ConstantsDefine global, class, magic, and enum-like immutable values safely. 26 min
06OperatorsApply arithmetic, comparison, logical, assignment, string, and null operators. 34 min07Control FlowDesign branches with if, switch, match, truthiness, and guard clauses. 30 min08LoopsRepeat work with for, while, do-while, foreach, break, and continue. 30 min09FunctionsDesign parameters, returns, types, variadics, named arguments, callbacks, and recursion. 40 min10ArraysMaster indexed, associative, multidimensional, transformational, and sorting operations. 42 min
11Strings and Text HandlingManipulate byte strings, multibyte text, interpolation, formatting, and search. 38 min12Forms: GET and POSTProcess form methods, encoding, validation, CSRF, redirects, and user feedback. 40 min13SuperglobalsUse request, server, session, cookie, environment, file, and global arrays safely. 36 min14Sessions and CookiesManage secure session identity, cookie flags, expiration, rotation, and storage. 42 min15File HandlingOpen, read, write, lock, stream, and safely resolve filesystem paths. 42 min
16Error and Exception HandlingUse Throwable, exceptions, handlers, finally, logging, and production-safe reporting. 38 min17Classes and ObjectsModel properties, methods, visibility, static state, readonly data, and invariants. 40 min18Constructors and DestructorsInitialize dependencies and understand promotion, lifecycle hooks, and cleanup limits. 36 min19InheritanceExtend behavior safely with overrides, final contracts, parent calls, and composition. 36 min20Interfaces and Abstract ClassesDesign contracts, shared foundations, substitutable implementations, and extension points. 38 min
21TraitsReuse implementation horizontally and resolve method conflicts explicitly. 30 min22Namespaces and AutoloadingOrganize names, aliases, Composer autoloading, and PSR-4 project layout. 34 min23PHP Standard LibraryNavigate arrays, strings, math, dates, filters, iterators, and SPL structures. 42 min24MySQL with mysqliConnect, prepare, bind, fetch, transact, and close MySQL operations safely. 44 min25PDO Database AccessUse portable connections, prepared statements, fetch modes, errors, and transactions. 44 min
26CRUD OperationsBuild validated create, bounded read, safe update, delete, pagination, and transactions. 48 min27Input ValidationApply boundary schemas, allowlists, normalization, filters, and useful error messages. 38 min28SQL Injection PreventionSeparate SQL and data, allowlist identifiers, restrict privileges, and review dynamic queries. 38 min29XSS PreventionEncode output by context, sanitize trusted markup, and deploy browser protections. 40 min30Password HashingHash, verify, rehash, rate-limit, and securely manage authentication secrets. 36 min
31Regular ExpressionsUse PCRE patterns, captures, replacement, Unicode, and safe complexity. 38 min32File Uploads and Image HandlingValidate transport, MIME, size, names, storage, decoding, and image output. 44 min33JSON HandlingEncode, decode, validate, report failures, and design stable JSON representations. 32 min34REST API BasicsModel resources, methods, status codes, representations, authentication, and errors. 46 min35Type DeclarationsUse scalar, nullable, union, intersection, mixed, never, and return types. 36 min
36Modern PHP SyntaxApply coalescing, arrows, nullsafe access, named arguments, and promotion. 34 min37PHP 7 and 8 Runtime FeaturesUnderstand OPcache, JIT, attributes, enums, match, and version compatibility. 38 min38Best Practices and OptimizationBuild secure, maintainable, observable PHP and optimize measured bottlenecks. 46 min
Final assessment
PHP Programming final exam
Complete all 38 chapters to unlock the exam.
Exam locked