PHPackages                             nabeghe/cally - 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. nabeghe/cally

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

nabeghe/cally
=============

Just a handy helper for callables and calling them!

0.1.0(1y ago)391MITPHPPHP &gt;=7.4

Since Oct 18Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/nabeghe/cally-php)[ Packagist](https://packagist.org/packages/nabeghe/cally)[ Docs](https://github.com/nabeghe/cally-php)[ RSS](/packages/nabeghe-cally/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Cally (Callable Helper for PHP)
===============================

[](#cally-callable-helper-for-php)

> Just a handy helper for callables and calling them!

---

🫡 Usage
-------

[](#-usage)

### 🚀 Installation

[](#-installation)

You can install the package via composer:

```
composer require nabeghe/cally
```

---

### Examples

[](#examples)

#### Example - call:

[](#example---call)

An alternative to `call_user_func_array` where you can create an array callable and place the arguments directly in the array.

```
use Nabeghe\Cally\Cally;

class Math
{
    public static function multiple($number1, $number2)
    {
        return $number1 * $number2;
    }
}

$value = Cally::call([Math::class, 'multiple', 13], 14);

echo $value; // 182
```

#### Example - ob:

[](#example---ob)

Execute a callable between `ob_start`, `ob_get_contents`, &amp; `ob_end_clean`, and returns the final buffer.

```
use Nabeghe\Cally\Cally;

$output = Cally::ob(function () {
    echo 'nabeghe/cally';
});

echo $output; // nabeghe/cally
```

#### Example - action:

[](#example---action)

Invokes a series of callbacks sequentially and in order.

```
use Nabeghe\Cally\Cally;

Cally::action([
    function (&$number) {
        echo "Action 1 = $number\n";
        $number+=1;
    },
    function ($number) {
        echo "Action 2 = $number\n";
    },
], 13);

// Action 1 = 13
// Action 2 = 14
```

#### Example - filter:

[](#example---filter)

Sequentially passes a value through a series of callbacks, updating it with each callback's output, and returns the final value.

```
use Nabeghe\Cally\Cally;

$value = Cally::filter([
    function ($value, $number) {
        echo "Filter 1 = $value\n";
        $value+=$number;
        return $value;
    },
    function ($value, $number) {
        echo "Filter 2 = $value\n";
        $value*=$number;
        return $value;
    },
], 13, 14);

echo "Value    = $value\n";

// Filter 1 = 13
// Filter 2 = 27
// Value    = 378
```

---

📖 License
---------

[](#-license)

Licensed under the MIT license, see [LICENSE.md](LICENSE.md) for details.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance46

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity29

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

576d ago

### Community

Maintainers

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

---

Top Contributors

[![nabeghe](https://avatars.githubusercontent.com/u/12207627?v=4)](https://github.com/nabeghe "nabeghe (3 commits)")

---

Tags

actioncallablecallbackfilterinvokephpphpfunctionphphelperphpsupportsupporthelperinvokecallablelibraryfiltercallbacksupportactioncallcall\_user\_funccall\_user\_func\_arraycally

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nabeghe-cally/health.svg)

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

PHPackages © 2026

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