CodeIgniter is a small, fast PHP framework with few rules and clear documentation, which makes it a good first framework and a common choice for budget hosting and existing business systems in India. CodeIgniter 4 is a full rewrite of version 3, with namespaces, Composer, modern PHP and built-in security features. This course teaches you to build and ship complete applications with it.

What you'll learn

  • Installing CodeIgniter 4 with Composer and understanding the app folder structure
  • The MVC pattern: controllers, views, view layouts and view cells
  • Routing: defined routes, route groups, placeholders and auto-routing (and why to keep it off)
  • Working with databases through models, entities and the Query Builder
  • Migrations and seeders to version your database
  • Form handling and validation rules, including custom rules
  • Filters for authentication, CSRF protection and CORS
  • Authentication and authorisation with CodeIgniter Shield
  • Building REST APIs with resource controllers and JSON responses
  • Configuration with .env, logging, debugging toolbar and deploying to shared hosting or a VPS

Who it's for

  • PHP beginners ready for their first framework
  • Developers maintaining CodeIgniter 3 projects who need to move to version 4
  • Freelancers who build small business sites and admin panels on affordable hosting

Prerequisites

  • PHP basics: variables, arrays, functions and forms (see PHP Fundamentals)
  • Basic HTML and SQL
  • PHP 8.1 or later and Composer installed locally

Outcomes

By the end of this course you will be able to:

  1. Build a complete CodeIgniter 4 app with authentication, forms and a database.
  2. Expose your data through a simple, secure REST API.
  3. Plan a migration from a CodeIgniter 3 codebase.
  4. Deploy a CodeIgniter app safely, with the public folder as the web root.

Course outline

ModuleTopic
1Installing CodeIgniter 4 and the project structure
2Routing and controllers
3Views, layouts and view cells
4Databases, migrations and seeders
5Models, entities and the Query Builder
6Forms and validation
7Sessions, filters and security features
8Authentication with Shield
9REST APIs and resource controllers
10Testing basics with the built-in test tools
11Migrating from CodeIgniter 3
12Project: a small business admin panel, deployed

FAQ

Should I learn CodeIgniter or Laravel?

Both are good choices. CodeIgniter is lighter and quicker to learn; Laravel has a larger ecosystem. Many developers start here and later take Laravel for Beginners.

Is CodeIgniter 3 still covered?

Only in the migration module. CodeIgniter 3 no longer receives regular updates, so new work should use version 4.

Can I host on shared hosting?

Yes, and we show how to set the document root to the public folder so application files are not exposed.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.