Which is the best PHP ORM for codeigniter? [closed] Which is the best PHP ORM for codeigniter? [closed] codeigniter codeigniter

Which is the best PHP ORM for codeigniter? [closed]


DataMapper

An Object Relational Mapper written in PHP for CodeIgniter. It is designed to map your Database tables into easy to work with objects, fully aware of the relationships between each other.

Website: http://datamapper.wanwizard.eu/

Gas ORM

A lightweight and easy-to-use ORM for CodeIgniter. Gas was built specifically for CodeIgniter app. It uses CodeIgniter Database packages, a powerful DBAL which support numerous DB drivers. Gas ORM provide a set of methods that will map your database tables and its relationship, into accessible object.

Website: http://gasorm-doc.taufanaditya.com/

Doctrine

Website: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/

NOTE: You must do some workaround to integrate this with CI, try here.

EDIT: Doctrine, integrating with CodeIgniter (working URL). This might not work for all CodeIgniter versions and may require slight adjustments.


I've used Doctrine a number of times with CI and I love it. As I understand it there are two different ways to integrate CI with it, you can either install it as a plugin or use hooks.

Reference:

http://web.archive.org/web/20160126131627/http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup

http://docs.doctrine-project.org/en/2.0.x/cookbook/integrating-with-codeigniter.html