Use fuelphp modules without mvc

110 Views Asked by At

I've opened a similar question on Zend (Using ZF2 components without entire MVC process) but I wonder if it is possible to use fuelphp without using the MVC elements? It takes a long time to load so could you use forms or access control for example without using the whole mvc system?

1

There are 1 best solutions below

2
On

Most of v1 is somewhat tightly coupled with the fuel core, so you could use parts of it but you would still have to make sure the autoloader is set up and any parts of fuel that the target code needs. This should not be a major problem with v1 but it is simply not designed to be used like this so YMMV.

What might be a better move is to take a look at the v2 packages as the code is better separated and the packages have minimal dependencies on each other. None of the v2 code relies on the MVC structure apart from the core installer package.

As of the time of writing not all are finished or even started but there might be something in there that you will find useful. We are also going to be releasing a first alpha version of v2 in the new year so there should be lots more code popping up over the next month and a half.

That being said there are loads of packages out there on packigist so there's nothing stopping you using anything from there, totally outside of the MVC pattern.