PHPackages                             cleaniquecoders/eligify - 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. cleaniquecoders/eligify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cleaniquecoders/eligify
=======================

Eligify is a flexible rule and criteria engine that determines whether an entity — such as a person, application, or transaction — meets the defined acceptance conditions. It powers decision-making systems by making eligibility data-driven, traceable, and automatable.

1.5.2(3mo ago)15686↓50%6[3 PRs](https://github.com/cleaniquecoders/eligify/pulls)MITPHPPHP ^8.4CI passing

Since Oct 27Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/cleaniquecoders/eligify)[ Packagist](https://packagist.org/packages/cleaniquecoders/eligify)[ Docs](https://github.com/cleaniquecoders/eligify)[ GitHub Sponsors]()[ RSS](/packages/cleaniquecoders-eligify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (20)Used By (0)

Eligify
=======

[](#eligify)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3081f7a0ba05d9dac677913923ed4669cba14d315b47d7de4d50a6a44ad20e50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c65616e69717565636f646572732f656c69676966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cleaniquecoders/eligify) [![GitHub Tests Action Status](https://camo.githubusercontent.com/3572a1c05b85ed98b56feb9a355dc69d5b8ada680ab04ed82b07ec78cc85aea2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636c65616e69717565636f646572732f656c69676966792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/cleaniquecoders/eligify/actions?query=workflow%3Arun-tests+branch%3Amain) [![GitHub Code Style Action Status](https://camo.githubusercontent.com/a6b743be6f6e24bbf75a1a9a0388c5db96ed518930393372b57c10b2b821e6b9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636c65616e69717565636f646572732f656c69676966792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/cleaniquecoders/eligify/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain) [![Total Downloads](https://camo.githubusercontent.com/8e2dea10002b5579c142272591a2d1170951d46e2c5443a33d4df47130086ed9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c65616e69717565636f646572732f656c69676966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cleaniquecoders/eligify)

Eligify is a flexible rule and criteria engine that determines whether an entity — such as a person, application, or transaction — meets the defined acceptance conditions. It powers decision-making systems by making eligibility data-driven, traceable, and automatable.

[![Eligify](screenshots/eligify-banner.png)](screenshots/eligify-banner.png)

Features
--------

[](#features)

- 🧱 **Criteria Builder** - Define eligibility requirements with weighted rules
- ⚖️ **Rule Engine** - 16+ operators for comprehensive validation
- 🎯 **Evaluator** - Real-time eligibility checks with detailed scoring
- 🔄 **Workflow Manager** - Trigger actions on pass/fail/excellent scores
- 🧾 **Audit Log** - Complete traceability of all decisions
- 🎨 **Web Dashboard** - Optional Telescope-style UI for management (disabled by default)
- 🧩 **Model Integration** - Seamless Laravel Eloquent integration
- 📊 **Flexible Scoring** - Weighted, pass/fail, percentage, and custom methods
- ⚡ **Smart Caching** - Built-in evaluation and rule compilation caching for optimal performance (experimental)

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

[](#installation)

You can install the package via composer:

```
composer require cleaniquecoders/eligify
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="eligify-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="eligify-config"
```

Usage
-----

[](#usage)

### Quick Example

[](#quick-example)

```
use CleaniqueCoders\Eligify\Facades\Eligify;

// Define criteria
$criteria = Eligify::criteria('Loan Approval')
->addRule('credit_score', '>=', 650, 30)
    ->addRule('annual_income', '>=', 30000, 25)
    ->addRule('debt_ratio',
'
