PHPackages                             csitc/real-rap - 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. csitc/real-rap

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

csitc/real-rap
==============

Codeigniter ORM for 3.0 or higher

1.0.0(9y ago)195.9k↑171.9%8MITPHPPHP &gt;=5.5.30

Since Sep 23Pushed 7y ago2 watchersCompare

[ Source](https://github.com/wugang8068/RealRap)[ Packagist](https://packagist.org/packages/csitc/real-rap)[ RSS](/packages/csitc-real-rap/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

*RealRap*
=========

[](#realrap)

This is a CI ORM, and inspired by laravel eloquent

中文地址: [https://github.com/wugang8068/RealRap/blob/master/ReadMe\_zh.md](https://github.com/wugang8068/RealRap/blob/master/ReadMe_zh.md)

### How to install:

[](#how-to-install)

```
composer require csitc/real-rap dev-master

```

### Retrieve

[](#retrieve)

Example: We need to fetch the user where user\_id &gt;= 50 and order by user\_id and user\_mobile and get the first one

> ```
>     $users = User::all(['*'])->where([
>         'user_id user = User::all(['*'])->where([
            'user_mobile' => '17010058640'
        ])->order([
            'user_id' => 'desc',
            'user_mobile' => 'desc'
        ])->limit(1)->getOne();

```

Then fetch if by the flowing:

```
$keys = $this->user->key
//The $keys is an array within objects or an object or null depends on the relation in User.php

```

The model can be write in this:

```
User.php

class User extends Model
{

	protected $table = 'inf_user';

	protected $primaryKey = 'user_id';

	protected function key(){
        return $this->hasMany(Key::class,'cdk_bind_user');
        //return $this->hasOne(Key::class,'cdk_bind_user');
    }
}

Key.php

class Key extends Model
{

    protected $table = 'inf_cd_keys';

    protected $primaryKey = 'cdk_id';

}

```

To DO LIST:

- Wrap the collection data instead of an array

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3569d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5339979?v=4)[wugang8068](/maintainers/wugang8068)[@wugang8068](https://github.com/wugang8068)

---

Top Contributors

[![wugang8068](https://avatars.githubusercontent.com/u/5339979?v=4)](https://github.com/wugang8068 "wugang8068 (4 commits)")[![whyiug](https://avatars.githubusercontent.com/u/6668626?v=4)](https://github.com/whyiug "whyiug (1 commits)")

---

Tags

ormci

### Embed Badge

![Health badge](/badges/csitc-real-rap/health.svg)

```
[![Health](https://phpackages.com/badges/csitc-real-rap/health.svg)](https://phpackages.com/packages/csitc-real-rap)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k300.5M7.5k](/packages/doctrine-orm)[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k254.4M4.1k](/packages/doctrine-doctrine-bundle)[doctrine/persistence

The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.

4.0k304.4M1.0k](/packages/doctrine-persistence)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k124.6M428](/packages/gedmo-doctrine-extensions)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[beberlei/doctrineextensions

A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL, Oracle, PostgreSQL and SQLite.

2.1k79.7M183](/packages/beberlei-doctrineextensions)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
