Himanshu SharmaSoftware engineer
Let’s talk

Beginner to intermediate · 30 lessons

CodeIgniter 4 for beginners

A practical CodeIgniter 4.7.6 course for PHP beginners, verified as of 2026-11. Build a fictional bookshop with SQLite, views, forms, security boundaries, tests and a deployment checklist.

Syllabus

Start a PHP application

  1. CodeIgniter 4: from a PHP script to an application15 min
  2. CodeIgniter installation: a verified Composer workspace15 min
  3. CodeIgniter folders: finding the right place for code15 min
  4. CodeIgniter Spark: inspect and generate deliberately15 min

Requests and presentation

  1. CodeIgniter configuration: separate environments safely15 min
  2. CodeIgniter routes: map methods and paths explicitly15 min
  3. CodeIgniter controllers: turn requests into responses15 min
  4. CodeIgniter views: render data with contextual escaping15 min
  5. CodeIgniter layouts: share a bookshop page shell15 min

Store the catalogue

  1. CodeIgniter SQLite: connect the fictional bookshop15 min
  2. CodeIgniter migrations: version the books table15 min
  3. CodeIgniter seeders: repeatable fictional catalogue data15 min
  4. CodeIgniter models: define a safe book data boundary15 min
  5. CodeIgniter query builder: filter without SQL concatenation15 min
  6. CodeIgniter catalogue pages: lists and missing books15 min

Forms and browser state

  1. CodeIgniter forms: submit books with CSRF protection15 min
  2. CodeIgniter validation: reject invalid book input15 min
  3. CodeIgniter sessions: carry a message across a redirect15 min
  4. CodeIgniter book changes: update and delete deliberately15 min

Access boundaries

  1. CodeIgniter filters: place checks before controllers15 min
  2. CodeIgniter authentication: evaluate Shield and access rules15 min
  3. CodeIgniter security: separate escaping, validation and permission15 min

Files and APIs

  1. CodeIgniter JSON APIs: read books with ResourceController15 min
  2. CodeIgniter API contracts: validate writes and report failures15 min
  3. CodeIgniter uploads: validate files and store private covers15 min

Confidence and diagnostics

  1. CodeIgniter testing: prove catalogue behavior with PHPUnit15 min
  2. CodeIgniter diagnostics: useful errors without leaking secrets15 min

Delivery and final project

  1. CodeIgniter deployment: serve public and protect application files15 min
  2. CodeIgniter maintenance: reproduce dependencies and rehearse recovery15 min
  3. CodeIgniter final project: review a complete bookshop boundary15 min