PHPackages                             xtompie/criteria - 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. [Search &amp; Filtering](/categories/search)
4. /
5. xtompie/criteria

AbandonedArchivedLibrary[Search &amp; Filtering](/categories/search)

xtompie/criteria
================

Criteria - value object to handling filter/where, order, limit, paging

1.0.1(3y ago)03MITPHPPHP &gt;=8.0

Since Aug 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/xtompie/criteria)[ Packagist](https://packagist.org/packages/xtompie/criteria)[ RSS](/packages/xtompie-criteria/feed)WikiDiscussions master Synced yesterday

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

Criteria
========

[](#criteria)

Criteria - value object to handling filter/where, order, limit, paging

```
use Xtompie\Criteria\Criteria;

$criteria = Criteria::ofInput([
    ['status' => 'active', 'page' => '4'],
    perpageOptions: [],
    perpageDefault: 10,
]);

$criteria->offset(); // 30
$criteria->limit(); // 10
$criteria->where(); // ['status' => 'active']
```

Requiments
----------

[](#requiments)

PHP &gt;= 8.0

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

[](#installation)

Using [composer](https://getcomposer.org/)

```
composer require xtompie/criteria

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

1352d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c1316cdb671814b72350d75b23d7cafbde97ead0c21ac5613171a298bb15736?d=identicon)[xtompie](/maintainers/xtompie)

---

Top Contributors

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

---

Tags

filtercriteria

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xtompie-criteria/health.svg)

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

###  Alternatives

[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k261.7M7](/packages/clue-stream-filter)[webmozart/expression

Implementation of the Specification pattern and logical expressions for PHP.

214382.0k11](/packages/webmozart-expression)[laminas/laminas-filter

Programmatically filter and normalize data and files

9428.0M149](/packages/laminas-laminas-filter)[friendsofcake/search

CakePHP Search plugin using PRG pattern

1742.0M37](/packages/friendsofcake-search)[htmlawed/htmlawed

Official htmLawed PHP library for HTML filtering

401.1M9](/packages/htmlawed-htmlawed)[outl1ne/nova-input-filter

An input filter for Laravel Nova

24822.7k](/packages/outl1ne-nova-input-filter)

PHPackages © 2026

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