How to use Eloquent ORM migrations outside Laravel

Laravel's Eloquent is one of the most fluent and expressive ORM's available for PHP. However, unlike some of its competitors like Doctrine or Propel, it's highly tight to the Laravel ecosystem in some ways. It's still possible to use Eloquent outside Laravel with a bit of work. In this example, we are using Slim Framework, but most of the code will work in any framework of your choice, even in plain PHP if you are into that.

Read more...