PHPackages                             rulerz-php/pomm - 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. rulerz-php/pomm

ActiveLibrary

rulerz-php/pomm
===============

Pomm compilation target for RulerZ

10[2 issues](https://github.com/rulerz-php/pomm/issues)PHP

Since Jan 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/rulerz-php/pomm)[ Packagist](https://packagist.org/packages/rulerz-php/pomm)[ RSS](/packages/rulerz-php-pomm/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pomm compilation target for RulerZ [![Build Status](https://camo.githubusercontent.com/26088138dd864099b8368e416b1b25b1801fa6860bf89ffde297b2b01f32e96b/68747470733a2f2f7472617669732d63692e6f72672f72756c65727a2d7068702f706f6d6d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rulerz-php/pomm)
===============================================================================================================================================================================================================================================================================================================

[](#pomm-compilation-target-for-rulerz-)

Pomm compilation target for [RulerZ](https://github.com/K-Phoen/rulerz).

Usage
-----

[](#usage)

[Pomm](http://www.pomm-project.org/) is one of the targets supported by RulerZ.

This cookbook will show you how to retrieve objects using Pomm and RulerZ.

Here is a summary of what you will have to do:

- [configure Pomm](#configure-pomm);
- [configure RulerZ](#configure-rulerz);
- [filter your target](#filter-your-target).

### Configure Pomm

[](#configure-pomm)

This subject won't be directly treated here. You can either follow the [official documentation](http://www.pomm-project.org/documentation/sandbox2) or use a bundle/module/whatever the framework you're using promotes.

### Configure RulerZ

[](#configure-rulerz)

Once Pomm is installed and configured we can the RulerZ engine:

```
$rulerz = new RulerZ(
    $compiler, [
        new \RulerZ\Pomm\Target\Pomm(), // this line is Pomm-specific
        // other compilation targets...
    ]
);
```

The only Pomm-related configuration is the `Pomm` target being added to the list of the known compilation targets.

### Filter your target

[](#filter-your-target)

Now that both Pomm and RulerZ are ready, you can use them to retrieve data.

The `Pomm` instance that we previously injected into the RulerZ engine only knows how to use `PommProject\ModelManager\Model\Model` so the first step is to access the model to query:

```
$playerModel = $pomm['my_db']->getModel('\MyDb\PublicSchema\PlayerModel');
```

And as usual, we call RulerZ with our target (the `Model` object) and our rule. RulerZ will build the right executor for the given target and use it to filter the data, or in our case to retrieve data from a database.

```
$rule  = 'gender = :gender and points > :points';
$parameters = [
    'points' => 30,
    'gender' => 'M',
];

var_dump(
    iterator_to_array($rulerz->filter($playerModel, $rule, $parameters))
);
```

That's it!

License
-------

[](#license)

This library is under the [MIT](LICENSE) license.

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66958?v=4)[Kévin Gomez](/maintainers/K-Phoen)[@K-Phoen](https://github.com/K-Phoen)

---

Top Contributors

[![K-Phoen](https://avatars.githubusercontent.com/u/66958?v=4)](https://github.com/K-Phoen "K-Phoen (27 commits)")

### Embed Badge

![Health badge](/badges/rulerz-php-pomm/health.svg)

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

PHPackages © 2026

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