PHPackages                             dakujem/cumulus - 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. dakujem/cumulus

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

dakujem/cumulus
===============

☁ A set of utilities for easier development of cloud-enabled software.

2.0.3(4mo ago)228.0k↓38.9%UnlicensePHPPHP ^8.0CI passing

Since Jun 5Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/dakujem/cumulus)[ Packagist](https://packagist.org/packages/dakujem/cumulus)[ RSS](/packages/dakujem-cumulus/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (16)Used By (0)

☁ Cumulus
=========

[](#-cumulus)

[![PHP from Packagist](https://camo.githubusercontent.com/be842d7388eb4809ad42697873ff604d9ebf93dd73f835a6d502929096e3c8ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64616b756a656d2f63756d756c7573)](https://camo.githubusercontent.com/be842d7388eb4809ad42697873ff604d9ebf93dd73f835a6d502929096e3c8ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64616b756a656d2f63756d756c7573)[![PHP Test](https://github.com/dakujem/cumulus/actions/workflows/php-test.yml/badge.svg)](https://github.com/dakujem/cumulus/actions/workflows/php-test.yml)[![Coverage Status](https://camo.githubusercontent.com/135a724342c44d49fd90e1a8c15c0ff5b9ff864ad535d0223e9e44ec1d929b29/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f64616b756a656d2f63756d756c75732f62616467652e7376673f6272616e63683d7472756e6b)](https://coveralls.io/github/dakujem/cumulus?branch=trunk)

A set of plug-in utilities for easier development of cloud-enabled software.

> 💿 `composer require dakujem/cumulus`
>
> 📒 [Changelog](changelog.md)

Documentation
-------------

[](#documentation)

Included classes:

- **`Pipeline`**
    - 👉 [Middleware and Pipelines](doc/pipeline.md)
    - a class for middleware and pipelines
- **`Dsn`**
    - 👉 [Data Source Name](doc/dsn.md)
    - a DSN configuration wrapper and parser
- **`LazyIterator`**
    - 👉 [LazyIterator](doc/lazyIterator.md)
    - an iterator for on-demand data provisioning

As of now, the library has no external dependencies.

Compatibility
-------------

[](#compatibility)

`dakujem/cumulus`PHP`^2.0``^8` onwards`^1.5`, `^1.6``7.2`, `7.3`, `7.4`, `8.0``^1.4``7.2`, `7.3`, `7.4`Examples
--------

[](#examples)

**Pipelines &amp; middleware**

```
$foobarSuffixTube = Pipeline::tube([
    function (string $a): string {
        return $a . 'foo';
    },
    function (string $a): string {
        return $a . 'bar';
    },
]);
$foobarSuffixTube('iam'); // 'iamfoobar'

$foobarPrefixMiddleware = Pipeline::onion([
    function (string $a, callable $next): string {
        return $next('bar' . $a);
    },
    function (string $a, callable $next): string {
        return $next('foo' . $a);
    },
]);
$foobarPrefixMiddleware('youare'); // 'foobaryouare'
```

More in the documentation here: [Middleware and Pipelines](doc/pipeline.md).

**Dsn**

```
$dsn = new Dsn('mysqli://john:secret@localhost/my_db');

// with optional default values
$driver = $dsn->get('driver', 'mysqli');
$port = $dsn->get('port', 3306);
// without optional defaults
$user = $dsn->get('username');
// using magic and array accessors:
$user = $dsn->username;
$user = $dsn['username'];
$pass = $dsn->password ?? '';
```

More in the documentation here: [Dsn (Data Source Name)](doc/dsn.md).

Testing
-------

[](#testing)

Run unit tests using the following command:

`$` `composer test`

Contributing
------------

[](#contributing)

Ideas or contribution is welcome. Please send a PR or file an issue.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance74

Regular maintenance activity

Popularity29

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity76

Established project with proven stability

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

Recently: every ~369 days

Total

14

Last Release

140d ago

Major Versions

0.2 → 1.02018-01-17

1.6 → 2.02021-12-12

PHP version history (5 changes)0.1PHP ^7.0

1.3PHP &gt;=7.1

1.5PHP ^7.2 || ^8.0

1.6PHP ^7.2 || ~8.0.0

2.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

dsnlazyiteratorpipelinesmiddlewarecloudutilityiteratorutilitiespipeline

### Embed Badge

![Health badge](/badges/dakujem-cumulus/health.svg)

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

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M15](/packages/vaimo-composer-patches)[lodash-php/lodash-php

A port of Lodash to PHP

527719.0k5](/packages/lodash-php-lodash-php)[aldemeery/onion

A layering mechanism for PHP applications.

5810.7k2](/packages/aldemeery-onion)

PHPackages © 2026

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