Programming & Frameworks
PHP & Laravel
Prepare for PHP programming, object-oriented development, Laravel framework, REST APIs, database integration, authentication, and modern PHP application development.
Your learning roadmap
Explore the key concepts
Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.
PHP fundamentals
Understand the fundamentals of PHP, including its server-side execution model, language features, application structure, and role in building dynamic web applications.
Start learningPHP syntax and variables
Learn PHP syntax, opening and closing tags, statements, comments, variable declaration, naming conventions, scope, and dynamic variable assignment.
Start learningData types and operators
Explore PHP data types such as strings, integers, floats, booleans, arrays, objects, and null, along with arithmetic, comparison, logical, and assignment operators.
Start learningConditional statements and loops
Understand how to control program execution using if-else, switch, match, for, while, do-while, and foreach statements in PHP.
Start learningFunctions and parameter handling
Learn how to define and call PHP functions, pass arguments, return values, use default and named parameters, and work with variadic and reference parameters.
Start learningArrays and associative arrays
Explore indexed, associative, and multidimensional arrays, including array creation, iteration, searching, sorting, merging, and commonly used PHP array functions.
Start learningStrings and string manipulation
Learn PHP string operations, including concatenation, interpolation, searching, replacement, formatting, splitting, trimming, and regular-expression-based processing.
Start learningSuperglobal variables
Understand PHP superglobals such as $_GET, $_POST, $_SERVER, $_SESSION, $_COOKIE, $_FILES, $_REQUEST, and $_ENV for accessing request and runtime information.
Start learningGET and POST requests
Learn how PHP processes HTTP GET and POST requests, retrieves submitted values, handles request parameters, and distinguishes query-string data from request bodies.
Start learningForm handling and validation
Understand how to process HTML form submissions in PHP, validate required fields and input formats, display errors, and safely handle user-submitted data.
Start learningFile handling and uploads
Learn how to read, write, copy, move, and delete files in PHP, and securely process uploaded files using $_FILES, validation, size limits, and safe storage paths.
Start learningSessions and cookies
Explore PHP sessions and cookies for maintaining user state, managing login information, storing preferences, handling expiration, and protecting session identifiers.
Start learningError and exception handling
Understand PHP error reporting, warnings, notices, exceptions, try-catch-finally blocks, custom exceptions, and structured error handling for reliable applications.
Start learningPHP object-oriented programming
Learn object-oriented programming in PHP, including classes, objects, encapsulation, inheritance, polymorphism, abstraction, and reusable application design.
Start learningClasses and objects
Understand how PHP classes define properties and methods while objects represent instances, including object creation, property access, and method invocation.
Start learningConstructors and destructors
Learn how PHP constructors initialize objects and destructors perform cleanup, including constructor parameters, property initialization, and object lifecycle behavior.
Start learningInheritance and polymorphism
Explore PHP inheritance and polymorphism through parent and child classes, method overriding, dynamic dispatch, and reusable class hierarchies.
Start learningInterfaces and abstract classes
Compare PHP interfaces and abstract classes, including method contracts, partial implementations, inheritance rules, and their role in flexible application architecture.
Start learningTraits and namespaces
Understand how PHP traits provide reusable methods across classes and how namespaces organize code, prevent naming conflicts, and support structured application development.
Start learningStatic methods and properties
Learn how PHP static methods and properties belong to classes rather than individual objects, including static access, shared state, and appropriate usage patterns.
Start learningAccess modifiers
Understand public, protected, and private visibility in PHP and how access modifiers control the accessibility of class properties and methods.
Start learningType declarations and type hints
Explore PHP type declarations for parameters, return values, properties, union types, nullable types, and strict typing to improve code correctness and maintainability.
Start learningComposer and dependency management
Learn how Composer manages PHP project dependencies, including package installation, version constraints, composer.json, composer.lock, and dependency updates.
Start learningAutoloading and PSR standards
Understand Composer autoloading and PHP-FIG standards such as PSR-4, PSR-12, and PSR-7, including class loading, coding conventions, and interoperability.
Start learningPHP 8 features
Explore modern PHP 8 features such as named arguments, attributes, constructor property promotion, union types, match expressions, enums, and improved type declarations.
Start learningPHP security best practices
Learn secure PHP development practices covering input validation, output encoding, authentication, session protection, password storage, file handling, and application configuration.
Start learningSQL injection prevention
Understand how SQL injection attacks manipulate database queries and how parameterized statements, prepared queries, input validation, and least-privilege permissions prevent them.
Start learningPrepared statements and PDO
Learn how PHP Data Objects supports database access through prepared statements, parameter binding, transactions, exception handling, and database-independent query interfaces.
Start learningPHP database connectivity
Explore how PHP applications connect to relational databases using PDO and MySQLi, execute queries, retrieve results, manage connections, and handle database errors.
Start learningLaravel fundamentals
Understand Laravel as a PHP application framework and explore its MVC architecture, routing, controllers, middleware, service container, Eloquent ORM, and development ecosystem.
Start learningLaravel installation and project structure
Learn how to install Laravel using Composer, configure the development environment, understand the project directory structure, and run applications using Artisan.
Start learningLaravel routing
Understand Laravel routing for defining application endpoints, handling HTTP methods, route parameters, named routes, route groups, middleware, and resource controllers.
Start learningControllers and middleware
Learn how Laravel controllers organize request-handling logic and how middleware processes incoming requests for authentication, authorization, logging, and other cross-cutting concerns.
Start learningRequest and response handling
Explore Laravel request and response objects, including retrieving input, accessing headers, handling JSON payloads, returning redirects, and constructing HTTP responses.
Start learningBlade templating engine
Learn how Laravel Blade creates dynamic server-rendered views using template inheritance, layouts, components, directives, data binding, and reusable presentation logic.
Start learningLaravel service container
Understand the Laravel service container and how it resolves class dependencies, manages object construction, supports interface bindings, and enables flexible application architecture.
Start learningDependency injection in Laravel
Learn how Laravel automatically injects dependencies into controllers, routes, constructors, and other application components using container-based dependency resolution.
Start learningService providers and facades
Explore Laravel service providers for registering and bootstrapping application services, and understand how facades provide convenient access to container-managed components.
Start learningLaravel validation
Learn how Laravel validates incoming data using validation rules, custom messages, conditional validation, error bags, and request-level validation methods.
Start learningForm requests
Understand Laravel Form Request classes for organizing authorization and validation logic outside controllers, including custom rules, messages, and validated data access.
Start learningEloquent ORM fundamentals
Explore Laravel Eloquent ORM for interacting with databases through models, query building, CRUD operations, relationships, scopes, and automatic persistence.
Start learningModels and relationships
Learn how Laravel Eloquent models represent database tables and define relationships using belongsTo, hasOne, hasMany, belongsToMany, and other relationship methods.
Start learningDatabase migrations and seeders
Understand Laravel migrations for version-controlled database schema changes and seeders for inserting repeatable sample, development, and initial application data.
Start learningQuery builder
Learn how Laravel's query builder constructs database queries using a fluent interface, including joins, filtering, aggregation, grouping, ordering, and parameter binding.
Start learningDatabase transactions
Explore Laravel database transactions using DB::transaction, beginTransaction, commit, and rollback to maintain data consistency across multiple database operations.
Start learningLaravel authentication and authorization
Understand Laravel authentication and authorization using guards, providers, password hashing, policies, gates, middleware, and permission checks for protected resources.
Start learningLaravel Sanctum and API authentication
Learn how Laravel Sanctum provides API token authentication and SPA authentication, including token issuance, abilities, token expiration, and protected API routes.
Start learningLaravel REST API development
Explore how to build RESTful APIs with Laravel using resource routes, controllers, request validation, authentication, structured responses, and consistent HTTP status codes.
Start learningAPI resources and serialization
Understand Laravel API Resources for transforming Eloquent models and collections into controlled JSON responses, including nested resources and conditional attributes.
Start learningQueues and background jobs
Learn how Laravel queues execute time-consuming tasks asynchronously using jobs, queue connections, workers, retries, failed-job handling, and background processing.
Start learningEvents and listeners
Explore Laravel events and listeners for implementing event-driven application behavior, separating business operations from secondary actions such as notifications and auditing.
Start learningTask scheduling
Understand Laravel task scheduling for managing recurring commands and jobs using cron expressions, scheduled tasks, execution constraints, and background processing.
Start learningCaching in Laravel
Learn how Laravel caching improves application performance using cache stores, retrieval and storage methods, expiration, tags, invalidation, and distributed cache drivers.
Start learningLaravel testing with PHPUnit and Pest
Explore automated Laravel testing using PHPUnit and Pest, including feature tests, unit tests, HTTP assertions, database testing, factories, and test environment configuration.
Start learningLaravel performance optimization
Learn how to optimize Laravel applications through route and configuration caching, query optimization, eager loading, queue processing, caching, and application profiling.
Start learningLaravel deployment and production configuration
Understand how to deploy Laravel applications by configuring production environment variables, optimizing Composer dependencies, managing migrations, securing configuration, and setting up queues and scheduled tasks.
Start learningPractice & revise
Interview questions
Practice interview questions with answers, key points, and practical examples.
Test your knowledge
Explore 125 questions for this topic, covering concepts, practical examples, and interview scenarios.
Keep learning step by step
Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.
Explore another learning path