CodeIgniter 3 to Laravel migration: a practical checklist
A step-by-step checklist for moving a CodeIgniter 3 app to Laravel on the same database, module by module, without a big-bang relaunch.
CodeIgniter 3 still runs a lot of real businesses. The last official release, 3.1.13, came out in March 2022 and officially supports PHP up to 8.1. PHP 8.1 is already out of security support, and PHP 8.2 follows on 31 December 2026. Sooner or later, a CodeIgniter 3 app has to move.
Laravel is a common destination because it has a large ecosystem and a predictable release cycle. This checklist is how I approach the move: on the same database, one module at a time, with the old app still running.
Before you write any Laravel code
- List every entry point. Controllers, routes in
routes.php, cron jobs, CLI scripts, webhooks from payment or SMS providers. - Map the database. Tables, the queries that hit them, and anything that writes directly with raw SQL.
- Find the hidden dependencies. Server settings,
.htaccessrules, file uploads stored on disk, sessions, email sending. - Note the integrations. Payment gateways, SMS, email, third-party APIs. These are where migrations break.
- Agree on what must not change. URLs that customers and search engines know, invoice numbering, report outputs.
Set up the new app next to the old one
- Create the Laravel app pointing at the existing database. No schema changes yet.
- Generate Eloquent models for the existing tables. Set table names, primary keys and timestamps to match what is already there.
- Decide how traffic is split. Usually the web server or a front controller sends migrated routes to Laravel and everything else to CodeIgniter.
- Share login between the two apps, or move authentication first, so users don't have to log in twice.
Move one module at a time
Pick a module that is small, well understood and low risk, and move it first. For each module:
- Write tests (or at least a written checklist) for what it does today.
- Rebuild it in Laravel with controllers, Form Requests for validation, and Eloquent or the query builder.
- Replace CodeIgniter libraries and helpers with Laravel equivalents (sessions, uploads, email, pagination).
- Route that module's traffic to Laravel and watch the logs.
- Remove the CodeIgniter version only once the Laravel one has run cleanly.
Repeat until nothing is left on the CodeIgniter side. The modules that touch money, such as checkout, payments and invoicing, usually go last, once the pattern is proven.
Data and URLs
- Keep the existing schema until the old code no longer depends on it. Clean up columns and tables at the end, not the start.
- Keep old URLs working. Where a URL has to change, add a 301 redirect.
- Take a backup before every deploy, and keep a rollback path for each release.
After the last module
- Remove the CodeIgniter code and the routing split.
- Run the app on a supported PHP version (8.4, 8.5 or 8.6).
- Add the things CodeIgniter 3 made hard: queues for slow work, scheduled tasks in Laravel's scheduler, and automated tests in CI.
- Write handover notes, so the next developer isn't starting from zero.
Rewrite or migrate in place?
A big-bang rewrite with a single launch day is the riskiest option for a system the business depends on. Moving module by module takes discipline, but the business never stops, and each step can be rolled back.
I've done this on a production ticketing platform, moving it from its original CodeIgniter codebase to Laravel and migrating its production data. See the NitroTickets case study.
Need help with your migration?
See CodeIgniter to Laravel migration. If you want to stay on CodeIgniter for now and keep it running safely, see hire a CodeIgniter developer.
Need help with your project?
Learn more about codeigniter to laravel migration or get in touch to discuss your project.