CodeIgniter Basic Tutorial
Performance & Utilities
CodeIgniter Advanced
CodeIgniter is a powerful PHP framework built for developers who need a simple and elegant toolkit to create full-featured web applications. It is known for its small footprint, high performance, and exceptional speed.
1. MVC (Model-View-Controller) Architecture
Helps organize code into models (data), views (UI), and controllers (logic).
2. Lightweight and Fast
CodeIgniter is extremely fast compared to other PHP frameworks.
3. No Need for Template Engine
You can use plain PHP in your views.
4. Security
Built-in protections against CSRF, XSS, and SQL injection.
5. Simple Configuration
All configurations are PHP-based — no YAML or XML required.
6. Rich Set of Libraries
Comes with many libraries for sessions, form validation, email, database, etc.
If you have Composer installed, run this in your terminal:
composer create-project codeigniter4/appstarter my_project
appstarter
: CodeIgniter 4 starter project.
my_project
: Folder where your app will be created.
Once installed, navigate to the project:
cd my_project php spark serve
This command will start a local server at http://localhost:8080