DataMapper ORM

DataMapper ORM

DataMapper is 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.

Development has started on version 2.0 of DataMapper. This will be largely a rewrite, while trying to keep the API as compatible as possible.

The design has been largely finished. Development has been postponed for the moment, as CI 3.0 is currently not a stable development platform at the moment. We have decided to wait until the code base of the core stabilizes. In the meantime, if you have any feature requests or other contributing comments, feel free to use the issue tracker on Github. Let's make DataMapper even more awsome then it already is!

General Features

If you are new to Datamapper ORM, please start here to get Datamapper ORM running on your server. Then follow along with the Next Topic links at the bottom of each page.

If you are an existing Datamapper ORM user, you will find changes in new releases and upgrade instructions.

Note: Datamapper ORM is now also available as a CI Spark: check out the cool way of extending CodeIgniter at!

DataMapper ORM

This is the latest incarnation of the Datamapper library. After Phil had indicated he no longer had the time available to support his OverZealous Edition, Datamapper ORM is now being developed and maintained by WanWizard.

DataMapper, OverZealous Edition

This came from a desire to continue to enhance and develop DataMapper, and has been developed and maintained by Phil DeJarnett. DMZ is a near drop-in replacement if you are already using DataMapper 1.6.0 (and possibly older versions).

The Original DataMapper

DataMapper (for CodeIgniter) was originally developed by Simon Stenhouse. The basic design and original development was by him.


Some of the enhancements to the original DataMapper include:

If you would like to upgrade to Datamapper ORM from DMZ or the original DataMapper, please see the upgrade guide.

Support DataMapper

If you use DataMapper in your applications, please consider donating to support the ongoing development, maintenance and support of DataMapper. Any amount is highly appreciated.

You can donate via PayPal using the button in the upper-right corner of the page.

Custom Development

Are you looking for some custom development for DataMapper? Do you need an experienced PHP developer that knows both DataMapper and CodeIgniter inside and out to help you build your application?

Please contact JavaScript must be enabled to see my email. for details.