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:
- Build a complete CodeIgniter 4 app with authentication, forms and a database.
- Expose your data through a simple, secure REST API.
- Plan a migration from a CodeIgniter 3 codebase.
- Deploy a CodeIgniter app safely, with the public folder as the web root.
Course outline
| Module | Topic |
|---|---|
| 1 | Installing CodeIgniter 4 and the project structure |
| 2 | Routing and controllers |
| 3 | Views, layouts and view cells |
| 4 | Databases, migrations and seeders |
| 5 | Models, entities and the Query Builder |
| 6 | Forms and validation |
| 7 | Sessions, filters and security features |
| 8 | Authentication with Shield |
| 9 | REST APIs and resource controllers |
| 10 | Testing basics with the built-in test tools |
| 11 | Migrating from CodeIgniter 3 |
| 12 | Project: 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.