📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials CodeIgniter 4 What is CodeIgniter 4?

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?
💡 CodeIgniter 4 follows the Model-View-Controller (MVC) pattern.
2. Which command starts the CI4 dev server?
💡 php spark serve starts the built-in development server on port 8080.
3. What is Spark in CI4?
💡 Spark is CI4 equivalent of Laravel Artisan — CLI tool for code generation and tasks.
4. What is CI4 footprint size?
💡 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+?
💡 Auto-routing is disabled by default in CI4.2+ for security.