PHPackages                             saitamahero/condiment - 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. saitamahero/condiment

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

saitamahero/condiment
=====================

A PHP library for evaluating conditional statements

v0.2.0(12mo ago)07MITPHPPHP &gt;=8.0

Since Mar 19Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/saitamaHero/condiment)[ Packagist](https://packagist.org/packages/saitamahero/condiment)[ RSS](/packages/saitamahero-condiment/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Condiment
=========

[](#condiment)

> Conditional Statement (Condiment)

Condiment is a PHP library focused on evaluating conditions.The main goal of this library is to allow programmers to evaluate conditions and manage workflows in their applications.

### Usage

[](#usage)

```
use Condiment\Evaluables\Evaluators\FluentEvaluator;

$evaluator = new FluentEvaluator();

// Basic condition evaluation
$evaluator->equals("Hello", "Hello")->evaluate(); // true

// Fluent API: chaining conditions with AND
$evaluator->contains("Hello! This is the Condiment library", "condiment")
          ->equals(1, 1)
          ->evaluate(); // true

// This results in: `contains AND equals`

// Using NOT and OR operators for complex evaluations
$evaluator->contains("Rice", "ice")
          ->orNotContains("water", "ter")
          ->evaluate(); // true

// This results in: `contains OR !contains`
```

Contributing
------------

[](#contributing)

Contributions are welcome! Please open an issue or submit a pull request.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance50

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

4

Last Release

361d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74fea20bc2c0da28ab19fba1949adc125f04c5a7d2a2ff0cd6b4d3d958f77a74?d=identicon)[saitamaHero](/maintainers/saitamaHero)

---

Top Contributors

[![saitamaHero](https://avatars.githubusercontent.com/u/36612503?v=4)](https://github.com/saitamaHero "saitamaHero (89 commits)")

---

Tags

phpworkflowlogicevaluatorconditions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saitamahero-condiment/health.svg)

```
[![Health](https://phpackages.com/badges/saitamahero-condiment/health.svg)](https://phpackages.com/packages/saitamahero-condiment)
```

###  Alternatives

[fab2s/nodalflow

A PHP Nodal WorkFlow

16362.4k1](/packages/fab2s-nodalflow)[godbout/alfred-workflow-scriptfilter

Generate Alfred 3 or 4 Workflow Results in PHP with a laugh.

173.7k1](/packages/godbout-alfred-workflow-scriptfilter)

PHPackages © 2026

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