What is CodeIgniter 4?
5 min read Quiz at the end
Overview of CI4 MVC pattern, tiny footprint, and suitability for shared hosting environments.
What is CodeIgniter 4? CodeIgniter 4 is a lightweight, fast PHP MVC framework ideal for shared hosting and smaller apps. It has a tiny footprint (~1.1MB), minimal configuration, and excellent documentation.
Simple MVC pattern No complex configuration Built-in security features Query Builder for database access Excellent performance composer create-project codeigniter4/appstarter my-app
cd my-app
php spark serve # http://localhost:8080
Topic Quiz · 5 questions
Test your understanding before moving on
1. CI4 uses which architectural pattern?
A. MVP
B. HMVC
C. MVC
D. MVVM
💡 CodeIgniter 4 follows the Model-View-Controller (MVC) pattern.
2. Which command starts the CI4 dev server?
A. php ci serve
B. php spark serve
C. ci4 start
D. php artisan serve
💡 php spark serve starts the built-in development server on port 8080.
3. What is Spark in CI4?
A. A database tool
B. The CI4 command-line interface tool
C. A caching driver
D. A template engine
💡 Spark is CI4 equivalent of Laravel Artisan — CLI tool for code generation and tasks.
4. What is CI4 footprint size?
A. 50MB
B. 10MB
C. 1.1MB
D. 5MB
💡 CI4 has a tiny footprint of about 1.1MB making it ideal for shared hosting.
5. What does CI4 router do by default in v4.2+?
A. Auto-routing
B. Requires manual route definitions
C. Auto-detects controllers
D. Uses JSON config
💡 Auto-routing is disabled by default in CI4.2+ for security.
Submit answers