2026 PLATFORMS Enterprise AI Agents, Custom ERPs & Programmatic SEO Deployments
Team Web India
Call +91 96776 22025
Developer Architecture Quality Gate: Stub Definition (Noindex)

What is CodeIgniter 4 PSR-4 Autoloading?

The PHP-FIG standard for mapping namespaces directly to file paths in CodeIgniter 4, enabling clean modular separation of enterprise components.

Detailed Definition & Architectural Context

PSR-4 (PHP Standard Recommendation 4) is a formal specification for autoloading classes from file paths. In CodeIgniter 4, the Autoload configuration maps namespaces to physical directory structures. This enables developers to create self-contained modules containing their own controllers, models, and migrations.

Configured in app/Config/Autoload.php under the $psr4 associative array.

Formula or Technical Specification

Formula / Specification
$psr4 = [ "App" => APPPATH, "Config" => APPPATH . "Config", "Modules\CRM" => ROOTPATH . "modules/crm" ];

Related Technical Terms

Need Technical Advice on PSR-4?

Speak with our senior engineers in Coimbatore to architect your web systems.