PHPackages                             ah-b/oil - 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. ah-b/oil

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

ah-b/oil
========

flexible package for manage complex domain logic

0.1(6y ago)520[1 PRs](https://github.com/ahbaqdadi/oil/pulls)MITPHPCI passing

Since May 31Pushed 3mo agoCompare

[ Source](https://github.com/ahbaqdadi/oil)[ Packagist](https://packagist.org/packages/ah-b/oil)[ RSS](/packages/ah-b-oil/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

installation
------------

[](#installation)

```
composer require ah-b/oil "0.1"
```

Usage
-----

[](#usage)

```
$pipelineService = new OilService(new Pipeline());

$pipelineService->add(new Test());

$pipelineService->run('my payload');
```

```
class Test
{
    public function __invoke($payload)
    {
        return $payload;
    }
}
```

mediate
-------

[](#mediate)

```
$pipelineService = new OilService(new Mediator());

$pipelineService->add(function($payload){ echo $payload; });

$pipelineService->run('my payload');
```

Scenario
--------

[](#scenario)

```
    public function indexController()
    {

        $databaseRecord = "test";

        if($databaseRecord == "test")
        {
            // do some logic

        }

        if($databaseRecord == "foo")
        {
            // do some logic

        }

        if($databaseRecord == "bar")
        {
            // do some logic

        }

        ...

    }
```

```
    public function indexController()
    {

        $databaseRecord = "test";

        $pipelineService = new OilService(new Pipeline());

        $pipelineService->add(new Test());

        $pipelineService->add(new Foo());

        $pipelineService->add(new Bar());

        $pipelineService->run($databaseRecord);

        ...

    }
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance54

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2536d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ah-b-oil/health.svg)

```
[![Health](https://phpackages.com/badges/ah-b-oil/health.svg)](https://phpackages.com/packages/ah-b-oil)
```

PHPackages © 2026

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