PHPackages                             codelytv/criteria-from-url - 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. codelytv/criteria-from-url

ActiveLibrary

codelytv/criteria-from-url
==========================

0.1.3(1y ago)22.5k2PHPPHP ^8.2

Since Aug 5Pushed 1y ago2 watchersCompare

[ Source](https://github.com/CodelyTV/php-criteria-from_url)[ Packagist](https://packagist.org/packages/codelytv/criteria-from-url)[ RSS](/packages/codelytv-criteria-from-url/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (11)Used By (2)

 [    ![Codely logo](https://camo.githubusercontent.com/c1f65beb72f6457edf01a833da681b2ac4da31e376f4436f676de954ab69498d/68747470733a2f2f636f64656c792e636f6d2f6c6f676f2f636f64656c795f6c6f676f2e737667)  ](https://codely.com)

 🎼 Criteria from URL
=====================

[](#---criteria-from-url)

🔒 Read-only repository
======================

[](#-read-only-repository)

Any modification must be done in the [main repository](https://github.com/CodelyTV/php-criteria).

📥 Installation
--------------

[](#-installation)

```
composer require codelytv/criteria-from-url
```

💻 Usage
-------

[](#-usage)

The criteria converter expect an url with the following format:

- `filters`: An array of filters. Composed by:
    - `field`: The field to filter by.
    - `operator`: The operator to apply. [You can see here](https://github.com/CodelyTV/php-criteria/tree/main/packages/criteria) the valid operators list.
    - `value`: The value to filter by.
- `orderBy`: The field to order by.
- `order`: The order to apply. `asc` or `desc`.
- `pageSize`: The number of items per page.
- `pageNumber`: The page number.

### Url examples

[](#url-examples)

Url with one filter and no order or pagination:

```
http://localhost:3000/api/users?filters[0][field]=name&filters[0][operator]=CONTAINS&filters[0][value]=Javi`

```

Url with two filter, order and pagination:

```
http://localhost:3000/api/users
     ?filters[0][field]=name&filters[0][operator]=CONTAINS&filters[0][value]=Javi
     &filters[1][field]=email&filters[1][operator]=CONTAINS&filters[1][value]=gmail
     &orderBy=name
     &order=asc
     &pageSize=10
     &pageNumber=2

```

### Code usage

[](#code-usage)

```
$url = 'http://localhost:3000/api/users?filters[0][field]=name&filters[0][operator]=CONTAINS&filters[0][value]=Javi';

$converter = new CriteriaFromUrlConverter();

$criteria = $converter->toCriteria($url);
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

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

10

Last Release

640d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e1b70b2476930e7a394a09d09ee2eea487514acb4dbda6d4dc8b1da2caa607f?d=identicon)[rgomezcasas](/maintainers/rgomezcasas)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")

### Embed Badge

![Health badge](/badges/codelytv-criteria-from-url/health.svg)

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

PHPackages © 2026

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