Luminova Framework

PHP Luminova: Modules Autoloading & Class Name Aliases

Last updated: 2025-08-22 13:05:49

Automatically load application modules and set class aliases to simplify imports and improve project organization.

Autoload modules in your application.


  • File path: /app/Config/Modules.php

return [
    'alias' => [
        //'Foo' => 'SomeClass\ExampleFoo',
    ],
    'psr-4' => [
       //'Example\MyNamespace'    => '/example/MyClass/',
    ]
];