PatrickLouys / no-framework-tutorial

A small tutorial to show how to create a PHP application without a framework.
MIT License
1.53k stars 186 forks source link

Add #46

Closed oneum-zz closed 8 years ago

oneum-zz commented 8 years ago

Hi there! First, there is no new issue here, more like request for improving this guide! Now, I respect all contributors here and I would like to extend/use this guide with illuminate/database. Since I need some help here with this, how to properly glue it to existing code?

Thanks

PatrickLouys commented 8 years ago

You are free to use what you want, but Active Record goes against SOLID and everything taught in the tutorial. And then things like this...

// Make this Capsule instance available globally via static methods... (optional) $capsule->setAsGlobal();

I don't think a library which advertises such crappy code has a place in this tutorial.

Cheers Pat