PHPackages                             maximaster/bitrix-orm-condition - 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. maximaster/bitrix-orm-condition

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

maximaster/bitrix-orm-condition
===============================

Удобные классы для работы с построением условий ORM-запросов.

v1.0.1(1y ago)2981MITPHPPHP &gt;=7.4

Since Aug 27Pushed 1y ago2 watchersCompare

[ Source](https://github.com/maximaster/bitrix-orm-condition)[ Packagist](https://packagist.org/packages/maximaster/bitrix-orm-condition)[ RSS](/packages/maximaster-bitrix-orm-condition/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (1)

maximaster/bitrix-orm-condition
===============================

[](#maximasterbitrix-orm-condition)

Удобные классы для работы с построением условий ORM-запросов.

Класс `Column`
--------------

[](#класс-column)

Упрощает создание `Condition`.

- создаётся из имени колонки;
- с помощью методов equals, greater и аналогичных создаёт `Condition` или `ConditionTree`:

```
use Maximaster\BitrixOrmCondition\Column;

// Получаем ConditionTree который можно добавить в ::query()->where(...).
Column::of('NAME')->equals('Вася')->toTree();
// Есть ряд удобных методов строго типизирующие входные значения.
Column::of('ID')->foundIn(ElementTable::query()->where(/*...*/));
```

Важно! На текущий момент класс использует стратегию "NULL - это минус бесконечность". Например, при использовании метода `less(5)` вы получите и те строки, у которых значение `NULL`. Данная логика может быть желательной или нежелательной в зависимости от ситуации. В будущем планируется дать возможность управлять данным поведением.

Класс `Condition`
-----------------

[](#класс-condition)

- использует типизированный Operator вторым аргументом конструктора.

Класс `ConditionTree`
---------------------

[](#класс-conditiontree)

- имеет методы forAny/forAll, для включения logic через or/and;
- позволяет опционально через конструктор указать вложенные условия и логику;
- чинит баг метода `where` при входных данных `Condition[]|ConditionTree[]`.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

Every ~0 days

Total

2

Last Release

674d ago

### Community

Maintainers

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

---

Top Contributors

[![mlavrinenko](https://avatars.githubusercontent.com/u/15840214?v=4)](https://github.com/mlavrinenko "mlavrinenko (2 commits)")

### Embed Badge

![Health badge](/badges/maximaster-bitrix-orm-condition/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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