MakerBundle

Symfony MakerBundle

For building large platforms with extendable structure. Free!

4 reasons you may need it

Want to use a bundle-based approach ?

The new Symfony folder structure does not cover all scenarios. Sometimes the Bundle-based approach is needed.

Having good old code already?

Reuse old code that uses a Bundle-based structure. Code reuse is one the best software practices, isn’t it?

Reluctant to upgrade to SF5 ?

Transition from SF2/3 to 4/5 has to be simple and optional. You should be able to upgrade without lossing features you’re used with.

Is it better than the official MakerBundle?

The Symfony MakerBundle was/is still work in progress and completelly oritented toward SF5. If you just start learning Symfony or doing a simple project than that may be a better option.

Is the new Architecture good for my needs ?

Clean Architecture

The best practices would be to organize architecture independently of the framework and it is mainly for this reason that Symfony >4 no longer imposes a bundle.

And it is true that, except for really specific or complex projects, it will be more practical to have a "symfony-oriented" organization. But also consider that you should design your directory structure around how you organize work.

Per feature

An alternative is to work on the basis of the feature, therefore you should organize your code as such. It will make navigating and discovering the code easier.

This approach results in an intuitive directory structure that speaks for itself, whereas code is organized based on functional areas. Only by looking inside src/ directory, developer can immediately gain insight into what the application does

General-purpose code

There's a great chance that besides domain-specific code, there will be need for creating some general, reusable, framework-like code inside src/ directory, for example custom log handler (though it's most likely that Monolog already has it), cache facilitation, filters, and similar. That stuff is not your domain logic, it's not specific for your application and it's probably reusable between projects. What's more, it isn't supposed to be part of your application, but rather in a standalone library, and in a separate repository.

Which one is best for you ?

We can't say, but whichever you choose, now you have the alternative

Symfony MakerBundle

Install MakerBundle

composer require gesof/maker-bundle
Need help?

Here is the link to the full documentation: https://github.com/gesof/maker-bundle

Contact us

Please contact us with any questions or concerns using the form below