https://github.com/ill-deed/ci2-php8-boilerplate
A modernized CodeIgniter 2 boilerplate patched for PHP 8.2/8.3 compatibility, with deprecated features fixed and dynamic properties declared. Ready-to-use foundation for legacy CI2 apps on current PHP versions.
https://github.com/ill-deed/ci2-php8-boilerplate
boilerplate ci2 ci2-php8 codeigniter codeigniter2 legacy-framework mariadb mysql php8 php8-compatibility
Last synced: 3 months ago
JSON representation
A modernized CodeIgniter 2 boilerplate patched for PHP 8.2/8.3 compatibility, with deprecated features fixed and dynamic properties declared. Ready-to-use foundation for legacy CI2 apps on current PHP versions.
- Host: GitHub
- URL: https://github.com/ill-deed/ci2-php8-boilerplate
- Owner: ill-deed
- Created: 2025-09-07T06:08:00.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-09-07T07:02:19.000Z (4 months ago)
- Last Synced: 2025-09-07T08:27:43.609Z (4 months ago)
- Topics: boilerplate, ci2, ci2-php8, codeigniter, codeigniter2, legacy-framework, mariadb, mysql, php8, php8-compatibility
- Language: PHP
- Homepage:
- Size: 2.47 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# CodeIgniter 2 PHP 8 Boilerplate




π A modernized boilerplate for CodeIgniter 2 projects running on PHP 8.2/8.3+.This project patches the original CodeIgniter 2.2.6 core (system/ folder) to remove deprecated features, fix dynamic property issues, and update old MySQL calls for compatibility with modern PHP and MariaDB/MySQL.
## β¨ Features
β
Fully compatible with PHP 8.2/8.3
β
Dynamic properties declared (no more deprecation warnings)
β
Replaced legacy mysql_* with mysqli
β
Clean CodeIgniter 2.2.6 core ready for new projects
β
Drop-in boilerplate for legacy CI2 apps that need to run today
β
Works with MariaDB/MySQL 5.7+
## π Why This Exists
CodeIgniter 2 was officially retired in 2015 and was never updated for PHP 7 or PHP 8.However, many developers still maintain or extend legacy CodeIgniter 2 applications.This repo provides a drop-in foundation so you can:
Build new projects with the lightweight CI2 framework on modern PHP
Upgrade old CI2 apps to run without errors on PHP 8+
Avoid fighting with deprecated features every time you set up a project
## π Project Goals
Provide a stable boilerplate for CodeIgniter 2 apps running on PHP 8+
Document all changes made to the core for future maintainers
Keep this project as a reference for legacy CI2 modernization
Encourage community-driven improvements for security, performance, and developer experience
## π§ Getting Started
Clone this repo
Configure application/config/config.php and application/config/database.php
Point Apache/Nginx to the projectβs root and enable mod_rewrite
Start building your app π
## π€ Contributing
This project is open to contributions! If youβve modernized a part of CodeIgniter 2, improved security, or added useful developer tools, feel free to:
Fork the repo
Create a new branch
Submit a pull request
Ideas for future contributions:
Add Composer support
Replace CI2βs old encryption class with OpenSSL
Provide a migration path to CodeIgniter 3/4 while keeping CI2 compatibility
## π Keywords
CodeIgniter 2, PHP 8, legacy framework, CodeIgniter 2 boilerplate, CodeIgniter PHP 8 compatibility, PHP 8 upgrade, CodeIgniter 2.2.6, CodeIgniter deprecated, modern CodeIgniter 2, PHP 8 migration