CodeIgniter 4 is a compact PHP framework for secure web applications with MVC-friendly patterns, strong defaults, and minimal configuration.
Overview
CodeIgniter 4 is a full-stack PHP framework designed to stay small while supporting modern application structure. The project site describes a roughly 1.1MB download footprint with separate user guide assets.
It encourages MVC organization without mandating it, and ships protections such as CSRF defenses, XSS handling, and context-sensitive escaping in version 4. Documentation spans tutorials, how-to guides, and API references.
PHP 8.2 or newer is required with standard extensions such as JSON enabled. The public web root moved into a public folder so deployments point the web server at that directory rather than the project root.
Optional packages hold components that were core in version 3, letting teams adopt only what they need while keeping the base framework lean.
Key features
- MVC-oriented structure
- Built-in CSRF and XSS defenses
- Context-sensitive escaping
- Minimal default configuration
- Comprehensive user guide
- Optional packaged components
Use cases
- Small to medium PHP web apps
- Teams wanting a compact framework
- Projects needing clear security defaults
- Migrating from CodeIgniter 3 concepts