Use orm without framework
quevlu opened this issue · 15 comments
Hi guys,
I have a question, Can i use ORM fuel without framework ? if it's possible how can i install it ?
Thanks!
Yes of course...with composer: https://packagist.org/packages/fuel/orm
Thank you so much and i have a more question. How can i install it ? Do you have a sample code ?
You can't really, the ORM builds on top of the DBA layer from the framework, so you need that handy somewhere. And there are probably other core class dependencies too.
I need use orm\fuel in my project without framework, I need a simple tutorial how integrate it in my project if possible. Thank you !
I have installed with composer but I don't know how I can use it in my code for integrating in my project
See my previous response. It is tied in with the framework.
If I understand correctly I can not use \fuel\orm outside its framework (framework fuelphp)...
And do not you know another orm that goes in the same concepts as \fuel\orm ?
Please help me because I build a mini framework made home !
The best framework independent ORM is Doctrine. But it is quite complex to use. You could also look at Propel, or less known ORM's like "Spot ORM". Or something like LessQL. And Google can probably find others too.
I hesitate between nextras orm and phpdatamapper
Thank
I don't know either of them.
If you don't need a tank than try out https://redbeanphp.com/index.php
or https://medoo.in/ with a model class
I am thinking of building my own homemade orm, being the simplest while taking inspiration from \orm\fuel on the creation of models and CRUD.
Thank you all the same
Thanks for the advice, I find that Medoo is very simple and easy to set up !