Talk to an engineer

From CodeIgniter 3 to CodeIgniter 4, or somewhere else

CodeIgniter 4 is a rewrite, not an upgrade: namespaces, a new directory structure and a new request lifecycle. We move CodeIgniter 3 applications across in stages, or onto Laravel or Next.js when that is the better future.

Treated as a migration

Moving to CodeIgniter 4 rewrites the application's skeleton. We plan it like a migration, with both versions running side by side.

Controller by controller

Routes move across one group at a time, each live and reversible, until nothing is left on CodeIgniter 3.

An honest destination

If the application is moving anyway, we compare CodeIgniter 4, Laravel and Next.js on cost and fit before choosing.

What changes from CodeIgniter 3

Enough that copying files across does not work.

Namespaced controllers, models and libraries under a new directory structure

A new request and response lifecycle, with filters in place of hooks

A rewritten database layer and query builder with different return types

Sessions, validation and configuration all with new APIs

A newer minimum PHP version, which forces the runtime upgrade at the same time

How we run it

Two applications, one site, until the old one is empty.

Run CodeIgniter 4 alongside, routing migrated paths to it

Shared sessions and authentication across both during the move

Database code moved and tested model by model

CodeIgniter 3 kept patched under SeaPHP LTS until the last route moves

Common questions

Is CodeIgniter 3 still supported?

It receives limited maintenance and runs on PHP versions that are past end of life in most deployments. Covering the runtime with LTS buys time for the migration.

Would Laravel be better?

Sometimes. If the team is growing, or the application needs queues, events and a large package ecosystem, Laravel is often the better destination. The assessment says which.

Find out what your PHP estate needs

Tell us which versions you run and where. An engineer replies within one business day.