PHPackages                             rey/orm - 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. rey/orm

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

rey/orm
=======

Rey Bitrix ORM

v0.4.0(11y ago)1131MITPHPPHP &gt;=5.3.3

Since Jun 23Pushed 11y ago3 watchersCompare

[ Source](https://github.com/Olegator8800/ReyOrm)[ Packagist](https://packagist.org/packages/rey/orm)[ Docs](https://github.com/Olegator8800/ReyOrm)[ RSS](/packages/rey-orm/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

README
======

[](#readme)

What is ReyOrm?
---------------

[](#what-is-reyorm)

The experimental version ORM for Bitrix.

[![Build Status](https://camo.githubusercontent.com/9df39b450016efc7919e0d2689ee4ec09e1321447cfede388dc746a67af3c45f/68747470733a2f2f7472617669732d63692e6f72672f4f6c656761746f72383830302f5265794f726d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Olegator8800/ReyOrm)

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

[](#installation)

via composer:

```
$ php composer.phar require rey/orm dev-master

```

in your code add:

```
require_once __DIR__ . '/vendor/autoload.php';
```

Example
-------

[](#example)

Examples of work with ReyOrm (alfa version):

Сode class repository for news:

```
use Rey\Orm\Repository\BaseRepository;
use CIBlockElement;

class NewsRepository extends BaseRepository
{
    public function getAllNews()
    {
        $r = CIBlockElement::getList(array(), array('IBLOCK_ID' => $this->getMetadata()->get('iblock_id')));

        return $r;
    }
}
```

User repository can structure business logic in classes.

```
$config = new Rey\Orm\Configuration();

$config->setCacheDir(__DIR__ . '/cache/orm');
$config->setRepositoryClass('News', 'NewsRepository');

$em = new Rey\Orm\EntityManager($config);

$newsRepository = $em->getRepository('News');
$newsList = $newsRepository->getAllNews();

while($newsItem = $newsList->Fetch()) {
    echo $newsItem['Title'] . '';
}
```

When calling $em-&gt;getRepository('News') will be searched for the information block code News. If you have not set user repository for an News entity is returned instance Rey\\Orm\\Repository\\BaseRepository.

Run tests
---------

[](#run-tests)

You can run the unit tests with the following command:

```
$ cd path/to/rey/orm/
$ composer.phar install
$ phpunit

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Every ~0 days

Total

2

Last Release

4346d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/497254dfa3e96876e64e65a453764e8c3c128cb0a7022ab0d8f641216f391ea1?d=identicon)[olegator8800](/maintainers/olegator8800)

---

Tags

ormbitrix

### Embed Badge

![Health badge](/badges/rey-orm/health.svg)

```
[![Health](https://phpackages.com/badges/rey-orm/health.svg)](https://phpackages.com/packages/rey-orm)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k241.3M3.3k](/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.1k286.5M762](/packages/doctrine-persistence)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k118.8M366](/packages/gedmo-doctrine-extensions)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/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.1k75.1M146](/packages/beberlei-doctrineextensions)

PHPackages © 2026

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