Hi. I have a project api on Slim. I am using SQL to save/fetch/delete/update date in MySql database. However it takes time an much space in bigger project to use and manage this.
Now I am thinking to move to some ORM like Eloquent.
Those questions are likely to yield many different opinions. I’d say if you can ultimately develop projects faster with fewer bugs, then it is worth it. The trade-offs might include speed, memory, and testability.
Likewise there are many different opinions about the “best” ORM. After checking out a few including Eloquent, Fuel, RedBean, and Propel, I ended up using Eloquent as it was the most intuitive to me and it had the most tutorials.
For me it is. Being able to just write $user->save(); or $user->update(); is easier than writing all of the queries. Likewise for relationships doing something like $invoices = $user->invoices(); is easier for me than writing the join.
There are many great tutorial videos about Eloquent at Laracasts. I believe the Eloquent 101 episode is free, to get you started to see what it can do. It is based on Laravel, not Slim, but using Eloquent would be much the same.