flarum / framework

Simple forum software for building great communities.
http://flarum.org/
6.35k stars 834 forks source link

Decouple from Laravel #75

Closed tobyzerner closed 9 years ago

tobyzerner commented 9 years ago

_1 Upvote_ From tobyzerner.com/mithril:

Instead of using the whole framework, we will explicitly pull in components and tie everything together with a custom bootstrapping process. This will allow us to optimize performance and provide better integration with existing applications.

I thought I'd create an issue so we can (a) work out exactly what needs to be done and (b) keep track of it.

fluxbb/fluxbb#2.0 and fluxbb/core are obviously good inspiration :)

@franzliedke I'm dying for your input here :D I'm happy to do anything you want to delegate, I really want to get this moving :)

Allineer commented 9 years ago

guys, look at this

franzliedke commented 9 years ago

We'll likely go with nikic's FastRouter.

BenOvermyer commented 9 years ago

If you're decoupling from Laravel, why not decouple from PHP?

qrokodial commented 9 years ago

@BenOvermyer

If you're decoupling from Laravel, why not decouple from PHP?

because Flarum needs to be able to be easily ran almost anywhere, and PHP is universally supported throughout all web hosts.

BenOvermyer commented 9 years ago

That's fair reasoning. MySQL datastore, then?

franzliedke commented 9 years ago

MySQL is supported, as are several others (the ones that Laravel's database component supports).

BenOvermyer commented 9 years ago

What templating engine are you using? I don't see Twig; are you using Blade at the moment?

franzliedke commented 9 years ago

Yep.

BenOvermyer commented 9 years ago

Decoupling from Laravel would be best served by using an independent templating engine. I recommend Twig, having used it to great success myself.

franzliedke commented 9 years ago

It's okay to use some of the Laravel components, we're just trying not to tie ourselves to its default structure too much.

BenOvermyer commented 9 years ago

Again, fair. My recommendation stands, though. ;)

franzliedke commented 9 years ago

Let's discuss the whole Twig thing on the development forums. These kind of things are not yet set in stone, so you might convince us by listing its special powers. ;)

BenOvermyer commented 9 years ago

Will do!

franzliedke commented 9 years ago

The actual decoupling from Laravel's foundation is almost finished, next up: pulling in only the components that are needed and setting them up by hand.

franzliedke commented 9 years ago

For anybody watching this: I just merged the psr-7 branch into master. This will be awesome! =)

rodrigoargumedo commented 9 years ago

+1 :smile:

BenOvermyer commented 9 years ago

Fantastic. =D

tobyzerner commented 9 years ago

This is basically done - Laravel integration is another issue :)