PHPackages                             enoffspb/bitrix-entity-manager - 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. enoffspb/bitrix-entity-manager

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

enoffspb/bitrix-entity-manager
==============================

3531PHP

Since Jan 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/enoffspb/bitrix-entity-manager)[ Packagist](https://packagist.org/packages/enoffspb/bitrix-entity-manager)[ RSS](/packages/enoffspb-bitrix-entity-manager/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

BitrixEntityManager
===================

[](#bitrixentitymanager)

Установка
---------

[](#установка)

Подключить `enoffspb/bitrix-entity-manager` через composer.

Подключение и настройка
-----------------------

[](#подключение-и-настройка)

```
use enoffspb\BitrixEntityManager\BitrixEntityManager;

$entityManager = new BitrixEntityManager([
    'entitiesConfig' => [
        MyEntity::class => [
            'tableClass' => MyEntityTable::class
        ]
    ]
]);

// Вы можете зарегистрировать компонент через сервис-локатор в битрикс:

$serviceLocator = \Bitrix\Main\DI\ServiceLocator::getInstance();
$serviceLocator->addInstance('app.entityManager', $entityManager);

// И в дальнейшем использовать в приложении

/**
* @var $entityManager BitrixEntityManager
 */
$entityManager = $serviceLocator->get('app.entityManager');
```

Использование
-------------

[](#использование)

```
// Сохранение
$entity = new Entity(); // Любой класс для сущности
$entity->name = 'entity name';

$entityManager->save($entity);

// Обновление

$entity->name = 'new name';
$entityManager->update($entity);

// Удаление
$entityManager->delete($entity);

// Получение сущностей через Repository
$repository = $entityManager->getRepository(Entity::class);

$entity = $repository->getById(1);
$entities = $repository->getList(/** D7 parameters from getList() */);
```

Тестирование
------------

[](#тестирование)

Тестирование при разработке описано в [tests/README.md](tests/README.md).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/abf110f2ed8f63cde637bfe272fc80f54a29b58e9b48988aad78ce2b6f7e3059?d=identicon)[enoffspb](/maintainers/enoffspb)

---

Top Contributors

[![enoffspb](https://avatars.githubusercontent.com/u/66383349?v=4)](https://github.com/enoffspb "enoffspb (22 commits)")[![aclips](https://avatars.githubusercontent.com/u/17589725?v=4)](https://github.com/aclips "aclips (2 commits)")

### Embed Badge

![Health badge](/badges/enoffspb-bitrix-entity-manager/health.svg)

```
[![Health](https://phpackages.com/badges/enoffspb-bitrix-entity-manager/health.svg)](https://phpackages.com/packages/enoffspb-bitrix-entity-manager)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

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

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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