PHPackages                             4spacesdk/ci4ormextension - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. 4spacesdk/ci4ormextension

ActiveLibrary[Database &amp; ORM](/categories/database)

4spacesdk/ci4ormextension
=========================

ORM Extension for CodeIgniter 4

v1.1.2(3mo ago)5418.0k↓55.6%12[4 issues](https://github.com/4spacesdk/CI4OrmExtension/issues)MITPHPPHP &gt;=7.1

Since Nov 12Pushed 3mo ago7 watchersCompare

[ Source](https://github.com/4spacesdk/CI4OrmExtension)[ Packagist](https://packagist.org/packages/4spacesdk/ci4ormextension)[ RSS](/packages/4spacesdk-ci4ormextension/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (1)Versions (50)Used By (0)

CodeIgniter 4 OrmExtension
==========================

[](#codeigniter-4-ormextension)

[![Latest Stable Version](https://camo.githubusercontent.com/791bb5c2c1475cd3293c57e4f9510f431df244c5facf52c5ee2237aded9dd59e/687474703a2f2f706f7365722e707567782e6f72672f34737061636573646b2f6369346f726d657874656e73696f6e2f76)](https://packagist.org/packages/4spacesdk/ci4ormextension) [![Total Downloads](https://camo.githubusercontent.com/bd22a0fa8b46230e906ba4b9f78f9d8d24c8597a8523c68de3299671e51cc6a9/687474703a2f2f706f7365722e707567782e6f72672f34737061636573646b2f6369346f726d657874656e73696f6e2f646f776e6c6f616473)](https://packagist.org/packages/4spacesdk/ci4ormextension) [![Latest Unstable Version](https://camo.githubusercontent.com/5c7f892e6defb38a3b1a44eafc5871f384399802847d4ec25f0abb7d5c0869bf/687474703a2f2f706f7365722e707567782e6f72672f34737061636573646b2f6369346f726d657874656e73696f6e2f762f756e737461626c65)](https://packagist.org/packages/4spacesdk/ci4ormextension) [![License](https://camo.githubusercontent.com/f736844f503c2b694707b9b31f7f082193aed2d5788ba3eae0141f772d21cbc4/687474703a2f2f706f7365722e707567782e6f72672f34737061636573646b2f6369346f726d657874656e73696f6e2f6c6963656e7365)](https://packagist.org/packages/4spacesdk/ci4ormextension) [![PHP Version Require](https://camo.githubusercontent.com/dcf616ad5b7de13c2ec9e0464972fba031de1e85f93ccd44cbd0c9366a33bc1d/687474703a2f2f706f7365722e707567782e6f72672f34737061636573646b2f6369346f726d657874656e73696f6e2f726571756972652f706870)](https://packagist.org/packages/4spacesdk/ci4ormextension)

What is CodeIgniter 4 OrmExtension?
-----------------------------------

[](#what-is-codeigniter-4-ormextension)

OrmExtension is an Object Relational Mapper written in PHP for CodeIgniter 4. It is designed to map your Database tables into easy to work with objects, fully aware of the relationships between each other. OrmExtension is based on the same idea as the original [WanWizard DataMapper](https://datamapper.wanwizard.eu/) for CodeIgniter 2. But totally rewritten to fit CodeIgniter 4.

Installation
------------

[](#installation)

Step 1)

`composer require 4spacesdk/ci4ormextension`

Step 2)

Create new file `app/Config/OrmExtension.php` and add this content

```
