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

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

cartalyst/conditions
====================

A framework agnostic conditions package that allows you to apply conditions on Illuminate Collections.

v6.0.0(3y ago)010[1 issues](https://github.com/cartalyst/conditions/issues)1proprietaryPHPPHP ^8.1

Since May 15Pushed 3y ago4 watchersCompare

[ Source](https://github.com/cartalyst/conditions)[ Packagist](https://packagist.org/packages/cartalyst/conditions)[ RSS](/packages/cartalyst-conditions/feed)WikiDiscussions 6.x Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (25)Used By (1)

Conditions
==========

[](#conditions)

[![Build Status](https://camo.githubusercontent.com/395c92cccd213e4626b26f949eaa7e9ae8f538c8a2dc47b6d9e154ac7be2500d/68747470733a2f2f7472617669732d63692e636f6d2f63617274616c7973742f636f6e646974696f6e732e7376673f746f6b656e3d4c417574334c4d626d4246693354396a34354648266272616e63683d362e78)](https://travis-ci.com/cartalyst/conditions)

A framework agnostic conditions package that allows you to apply conditions on Cartalyst Collections.

Part of the Cartalyst Arsenal &amp; licensed [Cartalyst PSL](LICENSE). Code well, rock on.

Version Matrix
--------------

[](#version-matrix)

VersionLaravelPHP Version6.x10.x&gt;= 8.15.x9.x&gt;= 8.04.x7.x - 8.x&gt;= 7.2.53.x6.x&gt;= 7.22.x5.3 - 5.8&gt;= 5.4.01.x4.1 - 5.2&gt;= 5.4.0Documentation
-------------

[](#documentation)

Reader-friendly documentation can be found [here](https://cartalyst.com/manual/conditions).

Using the package, but you're stuck? Found a bug? Have a question or suggestion for improving this package? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.

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

[](#contributing)

Thank you for your interest, here are some of the many ways to contribute.

- Check out our [contributing guide](/.github/CONTRIBUTING.md)
- Look at our [code of conduct](/.github/CODE_OF_CONDUCT.md)

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

This software is released under the [Cartalyst PSL](LICENSE) License.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 62% 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 ~142 days

Recently: every ~186 days

Total

24

Last Release

1107d ago

Major Versions

1.2.x-dev → 2.0.x-dev2015-03-15

v2.0.0 → v3.0.02019-09-04

3.0.x-dev → v4.0.02020-03-03

4.x-dev → 5.x-dev2022-02-14

v5.0.0 → 6.x-dev2023-05-08

PHP version history (6 changes)v1.0.0PHP &gt;=5.4.0

v3.0.0PHP ^7.2

v4.0.0PHP ^7.2.5

v4.1.0PHP ^7.2.5 || ^8.0

5.x-devPHP ^8.0

6.x-devPHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc3fd8ac4c6279992afacafbe3420cc64ffbe4b1db4880e97cb1ef4196ae847c?d=identicon)[cartalyst](/maintainers/cartalyst)

---

Top Contributors

[![brunogaspar](https://avatars.githubusercontent.com/u/2285372?v=4)](https://github.com/brunogaspar "brunogaspar (132 commits)")[![suwardany](https://avatars.githubusercontent.com/u/2053770?v=4)](https://github.com/suwardany "suwardany (61 commits)")[![JosephSilber](https://avatars.githubusercontent.com/u/1403741?v=4)](https://github.com/JosephSilber "JosephSilber (16 commits)")[![ipalaus](https://avatars.githubusercontent.com/u/248183?v=4)](https://github.com/ipalaus "ipalaus (4 commits)")

---

Tags

phplaravelcollectioncartalystcondition

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cartalyst-conditions/health.svg)

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

###  Alternatives

[cartalyst/converter

A framework agnostic measurement conversion and formatting package featuring multiple types of measurements and currency conversion.

88434.4k7](/packages/cartalyst-converter)[cartalyst/alerts

Alerts allows you to easily pass alert messages to your Laravel views.

3064.2k](/packages/cartalyst-alerts)[lazerg/laravel-enum-pro

A powerful PHP enum extension with collection support, random selection, and magic static calls

4319.0k](/packages/lazerg-laravel-enum-pro)[werxe/laravel-collection-macros

Custom Laravel Collection macros.

2625.8k](/packages/werxe-laravel-collection-macros)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)[jshannon63/jsoncollect

Supercharge your JSON using collections

154.9k1](/packages/jshannon63-jsoncollect)

PHPackages © 2026

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