PHPackages                             ytec/rule-eligibility-check - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ytec/rule-eligibility-check

ActiveMagento2-module[Validation &amp; Sanitization](/categories/validation)

ytec/rule-eligibility-check
===========================

Rule eligibility checker for Magento 2

1.2.0(2y ago)21.6kMITPHPPHP &gt;=7.4

Since Oct 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/matheusmarqui1/magento2-cart-rule-elegibility-checker)[ Packagist](https://packagist.org/packages/ytec/rule-eligibility-check)[ RSS](/packages/ytec-rule-eligibility-check/feed)WikiDiscussions main Synced 1mo ago

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

[![Magenot 2 Rule Eligibility Check for Magento 2](https://camo.githubusercontent.com/21d85452cbb9037cc0b473fb795e3f117158b344da13996fc3f294103b63db2b/68747470733a2f2f692e696d6775722e636f6d2f643851454852622e706e67)](https://camo.githubusercontent.com/21d85452cbb9037cc0b473fb795e3f117158b344da13996fc3f294103b63db2b/68747470733a2f2f692e696d6775722e636f6d2f643851454852622e706e67)

Ytec Rule Eligibility Check for Magento 2
=========================================

[](#ytec-rule-eligibility-check-for-magento-2)

[![Packagist Version](https://camo.githubusercontent.com/9903cce2b6e8f8539a68f58a490b54a7a80589629e864de4ec44c8dd18993256/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f797465632f72756c652d656c69676962696c6974792d636865636b3f6c6f676f3d7061636b6167697374267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ytec/rule-eligibility-check)[![Packagist Downloads](https://camo.githubusercontent.com/3dc49e3bbfa89f012369b46d665c8ddb47d643e860135003e1d733b9d1d42ab2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f797465632f72756c652d656c69676962696c6974792d636865636b2e7376673f6c6f676f3d636f6d706f736572267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ytec/rule-eligibility-check/stats)[![Supported Magento Versions](https://camo.githubusercontent.com/06075d036e8fefbf6b744046b4b599b9adb6a22a6e09e5f21d6d05da48369fc5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e342e782d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/06075d036e8fefbf6b744046b4b599b9adb6a22a6e09e5f21d6d05da48369fc5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e342e782d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765)[![License](https://camo.githubusercontent.com/a8e59c52a61079bac6876857b971b3115f991aa15de6cb7a243876b23007bb62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f636f6c6f723d253233323334267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/a8e59c52a61079bac6876857b971b3115f991aa15de6cb7a243876b23007bb62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f636f6c6f723d253233323334267374796c653d666f722d7468652d6261646765)

Introduction
------------

[](#introduction)

Welcome to Ytec Rule Eligibility Check for Magento 2. This module is a masterpiece coming straight from the magical city of Porto, meticulously engineered by Ytec, a company of Matheus da Costa Marqui. It simplifies rule eligibility checks to an unprecedented level. 😎

Features
--------

[](#features)

- **Date Validation**: Validate whether the rule's date range is applicable.
- **Item Actions Validation**: Validate cart items against rule actions.
- **Rule Conditions Validation**: Validate rule conditions against the entire cart.
- **Shipping Address Validation**: Validate shipping addresses against rule conditions.

Prerequisites
-------------

[](#prerequisites)

- PHP 7.4 or higher
- Magento 2.4.x

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

[](#installation)

1. Run `composer require ytec/rule-eligibility-check` in your Magento root directory.
2. Execute `bin/magento setup:upgrade`.
3. Clear the cache by running `bin/magento cache:clean` and `bin/magento cache:flush`.

How to Use
----------

[](#how-to-use)

### Finding the Module in Admin

[](#finding-the-module-in-admin)

1. Login to your Magento Admin Panel.
2. Navigate through `Marketing > Promotions > Cart Price Rules`.
3. Once you're inside, look for a new field labeled `Customer Id to test rule eligibility`.

### Using the Module

[](#using-the-module)

1. **Input Customer ID**: Enter the customer ID you want to test for eligibility in the aforementioned field.
2. **Press Validate**: A button labeled "Validate" should appear next to the input field. Click it.
3. **Check Result**: Upon pressing validate, you'll either see a success or an error message.
    - Success Message: "Oohah. The customer can benefit of this rule!"
    - Error Message: "Oops. The customer is not eligible for this rule!"

Dependencies
------------

[](#dependencies)

This module depends on the following Magento 2 modules:

- `Magento_SalesRule`
- `Magento_Quote`

License
-------

[](#license)

This module is open-source but all credits belong to Ytec, a company of Matheus da Costa Marqui. For the full license, please refer to the LICENSE.md file.

Support and Contribution
------------------------

[](#support-and-contribution)

For bugs, issues or feature requests, please open an issue on the repository or send an email to  for more personalized assistance.

---

Copyright (c) 2023 Ytec, a company of Matheus da Costa Marqui ()

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~10 days

Recently: every ~22 days

Total

10

Last Release

841d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aec6ca9769695ebf3a2908a7e174b6d4066819d807794fdf54ee73f4a6d90c79?d=identicon)[matheus.marqui](/maintainers/matheus.marqui)

---

Top Contributors

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

---

Tags

validationmagentoextensionmodulemagento2 modulemagento 2 modulemagento2 extensioncustomerpromotionscart rules

### Embed Badge

![Health badge](/badges/ytec-rule-eligibility-check/health.svg)

```
[![Health](https://phpackages.com/badges/ytec-rule-eligibility-check/health.svg)](https://phpackages.com/packages/ytec-rule-eligibility-check)
```

###  Alternatives

[olegkoval/magento2-regenerate-url-rewrites

Add into Magento 2 a CLI feature which allow to regenerate a Url Rewrites of products and categories

4423.7M2](/packages/olegkoval-magento2-regenerate-url-rewrites)[magepsycho/magento2-custom-shipping

Magento 2 Custom Shipping

697.5k](/packages/magepsycho-magento2-custom-shipping)[magepsycho/magento2-storepricing

Magento 2 Store View Pricing

2520.9k](/packages/magepsycho-magento2-storepricing)[magepsycho/magento2-discountlimit

Magento 2 Discount Amount Limiter

1111.6k](/packages/magepsycho-magento2-discountlimit)[werfu/magento2-url-key-mask

Enable Product and Category URL\_key generation using masks

135.4k](/packages/werfu-magento2-url-key-mask)[magepsycho/magento2-seosuite

Magento 2 FREE SEO Suite

106.3k](/packages/magepsycho-magento2-seosuite)

PHPackages © 2026

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