PHPackages                             yngc0der/bitrix-phpcondition - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yngc0der/bitrix-phpcondition

ActiveBitrix-d7-module[Utility &amp; Helpers](/categories/utility)

yngc0der/bitrix-phpcondition
============================

"PHP code" discount condition feature

v1.0.0(6y ago)4474MITPHPPHP &gt;=5.3.0

Since Nov 13Pushed 5y ago3 watchersCompare

[ Source](https://github.com/yngc0der/bitrix-phpcondition)[ Packagist](https://packagist.org/packages/yngc0der/bitrix-phpcondition)[ RSS](/packages/yngc0der-bitrix-phpcondition/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

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

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

Перейти в **DOCUMENT\_ROOT**

Выполнить:

```
composer require yngc0der/bitrix-phpcondition:dev-master

```

и

```
composer run-script post-install-cmd -d bitrix/modules/yngc0der.phpcondition

```

В результате:

1. файлы модуля загружены в директорию `bitrix/modules/yngc0der.phpcondition`
2. модуль зарегистрирован в системе
3. установлены необходимые обработчики событий

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

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

При создании правила работы с корзиной в блоке "Дополнительные условия" необходимо добавить условие "PHP выражение", где в поле значения вписать PHP выражение, которое возвращает логическое значение. Например, `isPromopage()`, где isPromopage - определенная функция, которая возвращает тип `bool`

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2424d ago

### Community

Maintainers

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

---

Tags

bitrixbitrix-cmsbitrix-modulebitrix24

### Embed Badge

![Health badge](/badges/yngc0der-bitrix-phpcondition/health.svg)

```
[![Health](https://phpackages.com/badges/yngc0der-bitrix-phpcondition/health.svg)](https://phpackages.com/packages/yngc0der-bitrix-phpcondition)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19251.4k3](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5721.7k4](/packages/pfefferle-wordpress-activitypub)

PHPackages © 2026

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