PHPackages                             jeyroik/extas-conditions - 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. jeyroik/extas-conditions

ActiveLibrary

jeyroik/extas-conditions
========================

Extas conditions package

2.0.0(2y ago)01.9k↑818.4%PHP

Since Mar 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jeyroik/extas-conditions)[ Packagist](https://packagist.org/packages/jeyroik/extas-conditions)[ RSS](/packages/jeyroik-extas-conditions/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (21)Used By (0)

[![tests](https://github.com/jeyroik/extas-conditions/workflows/PHP%20Composer/badge.svg?branch=master&event=push)](https://github.com/jeyroik/extas-conditions/workflows/PHP%20Composer/badge.svg?branch=master&event=push)[![codecov.io](https://camo.githubusercontent.com/74c1dce5039b33159f3e9217d0badf0b054b7e88e9fc48a965c58f250784608c/68747470733a2f2f636f6465636f762e696f2f67682f6a6579726f696b2f65787461732d636f6e646974696f6e732f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/74c1dce5039b33159f3e9217d0badf0b054b7e88e9fc48a965c58f250784608c/68747470733a2f2f636f6465636f762e696f2f67682f6a6579726f696b2f65787461732d636f6e646974696f6e732f636f7665726167652e7376673f6272616e63683d6d6173746572)[![](https://camo.githubusercontent.com/5a6f4f74d9ee19067a3646741bebd51e0697cd65e90ee0d882565e7c79dd087c/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37353136316634623936363766366137643364362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/jeyroik/extas-conditions/maintainability)[![Latest Stable Version](https://camo.githubusercontent.com/18034706c73efcf9f9b47c9562c18d8f1f27db1f57a74eb62cd0f131d46a5ea2/68747470733a2f2f706f7365722e707567782e6f72672f6a6579726f696b2f65787461732d636f6e646974696f6e732f76)](//packagist.org/packages/jeyroik/extas-conditions)[![Total Downloads](https://camo.githubusercontent.com/9adfe71e75aae1ca2f2057d7a50d01108b05b5757d79b5c25dafff6e7e468fed/68747470733a2f2f706f7365722e707567782e6f72672f6a6579726f696b2f65787461732d636f6e646974696f6e732f646f776e6c6f616473)](//packagist.org/packages/jeyroik/extas-conditions)[![Dependents](https://camo.githubusercontent.com/b058e9c2a444418adcb75a635219a7a901084dfa70a2a60ba227104f1ab474b1/68747470733a2f2f706f7365722e707567782e6f72672f6a6579726f696b2f65787461732d636f6e646974696f6e732f646570656e64656e7473)](//packagist.org/packages/jeyroik/extas-conditions)

Описание
========

[](#описание)

Условия и их проверка.

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

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

1. Установить обработчики.

`# vendor/bin/extas i`

2. Для использования проще всего реализовать интерфейс `extas\interfaces\conditions\IHasConditions`.

```
$hasCondition = new class ([
        IHasValue::FIELD__VALUE => [
            [
                'value' => 5,
                'condition' => '>'
            ],
            [
                'value' => 10,
                'condition' => '
