Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

smartwebdk's avatar

The equivalent to Module and Extension(Yii2) or Bundles(Symfony) in Laravel?

Hallo laravel pll.

New to laravel, comming from yii2 and Symfony. Maybe i dont understand the structure well enough to understand where the equivalent to Module and Extension(Yii2) or Bundles(Symfony) is in laravel?

I know their is packages which makes moduls possible i was just wondering why its not part of the frameworks core? Having a hard time find out how to we should keep low decoupling in our project.

0 likes
4 replies
primordial's avatar

Never used Yii2 and not touch Symfony in a few years but if I understand you correctly you can create as many namespaces as you wish for a more modular approach. "App" is merely the default.

topvillas's avatar

It doesn't need to be part of the framework core. Loading packages with Composer and autoload do the job very well.

smartwebdk's avatar

Module, Extension or Bundles contains its own views, config etc. and is easily loaded in to the framework because its part of it.

In popular packages to laravel is structured with only code and sometimes a config file.

I guest Laravel didnt implement to keep things simple - maybe.

Please or to participate in this conversation.