PHP – 12 Week Syllabus
Week 1 – Introduction to PHP & Setup
- Introduction to PHP, XAMPP/WAMP/LAMP setup
- PHP Syntax, Variables, Constants
- Data Types & Operators
- PHP with HTML integration
- Basic Input/Output with echo, print
Week 2 – Control Flow & Functions
- Conditional Statements (if, if-else, switch)
- Loops (for, while, do-while, foreach)
- Functions in PHP (user-defined & built-in)
- Function Parameters & Return Values
- Variable Scope (local, global, static)
Week 3 – Arrays & Strings
- Indexed, Associative & Multidimensional Arrays
- Array Functions (sort, merge, slice, push, pop, etc.)
- String Functions (strlen, substr, strpos, str_replace, etc.)
- Superglobals ($_GET, $_POST, $_REQUEST, $_SERVER)
Week 4 – Forms & User Input
- Working with HTML Forms
- Form Handling with GET & POST
- Input Validation & Sanitization
- Handling File Uploads
- Introduction to Sessions & Cookies
Week 5 – PHP with MySQL – Part 1
- Introduction to MySQL Database
- Connecting PHP with MySQL (mysqli, PDO)
- Executing Queries (SELECT, INSERT, UPDATE, DELETE)
- Prepared Statements
- Error Handling in Database Operations
Week 6 – PHP with MySQL – Part 2
- User Authentication System (Login/Logout)
- Password Hashing & Verification
- Storing Sessions in Database
- Building a Simple Registration & Login System
Week 7 – Object-Oriented PHP – Part 1
- Introduction to OOP in PHP
- Classes & Objects
- Constructors & Destructors
- Properties & Methods
- Access Modifiers (public, private, protected)
Week 8 – Object-Oriented PHP – Part 2
- Inheritance
- Method Overriding
- Interfaces & Abstract Classes
- Static Methods & Properties
- Namespaces & Autoloading
Week 9 – Advanced PHP
- Error & Exception Handling
- File Handling (read/write, file uploads, downloads)
- Working with JSON & XML
- PHP & APIs (fetching data from external APIs)
Week 10 – PHP Frameworks Introduction
- Introduction to MVC Pattern
- Basics of Laravel / CodeIgniter (choose one as demo)
- Routing, Controllers, Views (MVC flow)
- Blade Templates (if Laravel) / Views (if CodeIgniter)
- Connecting Framework with Database
Week 11 – Security & Optimization
- SQL Injection & Prevention
- Cross-Site Scripting (XSS) & Cross-Site Request Forgery (CSRF)
- Session Hijacking & Security Best Practices
- Caching & Performance Optimization
- Error Logging & Debugging
Week 12 – Final Project & Revision
- Mini Project (e.g., Blog System / E-commerce Cart / Student Management System)
- CRUD Implementation with Authentication
- Using Sessions, Forms, & Database Together
- Project Deployment on Live Server (cPanel / Cloud Hosting)
- Final Assessment & Review
