PHPackages                             php-rules/rules-filter - 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. php-rules/rules-filter

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

php-rules/rules-filter
======================

a sample test for composer

1.0.1(6y ago)012MITPHPPHP &gt;=7.0.0

Since Jul 3Pushed 4y agoCompare

[ Source](https://github.com/inforob/php-rules-rules-filter)[ Packagist](https://packagist.org/packages/php-rules/rules-filter)[ RSS](/packages/php-rules-rules-filter/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

php-rules-rules-filter
======================

[](#php-rules-rules-filter)

a rules repository

You can create new Rules for your array filters as follow:

```
declare(strict_types = 1);

namespace App;

class ContainerRulesArrayMap
{
    private $rules = [];

    private $items = [];

    public function __construct(array $tasks)
    {
        $this->items = $tasks;
    }

    public function addRule(Rule $rule) : void
    {
        $this->rules[] = $rule;
    }

    /**
     * execRule
     *
     * run each rule and aply the filter method
     * to each item from array origin
     *
     *
     * @return void
     */

    public function execRule() : void
    {
        foreach ($this->rules as $rule) {
            $this->items = $rule->map($this->items);
        }
    }
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.7% 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

Unknown

Total

1

Last Release

2507d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50e6581f5ede9332a8c41b3b696f0bf04bfcdc56056a8dd2955a6572003b7364?d=identicon)[robertomanchado](/maintainers/robertomanchado)

---

Top Contributors

[![robertomanchado](https://avatars.githubusercontent.com/u/117396053?v=4)](https://github.com/robertomanchado "robertomanchado (29 commits)")[![inforob](https://avatars.githubusercontent.com/u/5032387?v=4)](https://github.com/inforob "inforob (1 commits)")

### Embed Badge

![Health badge](/badges/php-rules-rules-filter/health.svg)

```
[![Health](https://phpackages.com/badges/php-rules-rules-filter/health.svg)](https://phpackages.com/packages/php-rules-rules-filter)
```

###  Alternatives

[awcodes/filament-badgeable-column

Filament Tables column to append and prepend badges.

142419.3k3](/packages/awcodes-filament-badgeable-column)[metaregistrar/php-dns-client

A php-only, object-oriented client that is able to read and process DNS records

297.6k](/packages/metaregistrar-php-dns-client)

PHPackages © 2026

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