PHPackages                             actualwave/callbacks - 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. actualwave/callbacks

ActiveLibrary

actualwave/callbacks
====================

Family of callback wrappers with shared interface

0.0.4(10y ago)0611MITPHPPHP &gt;=7.0.0

Since Dec 4Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (5)Used By (1)

\##PHP-Callbacks [![Build Status](https://camo.githubusercontent.com/84a312a5072620a58fd8a89834e3f8c9409658cb6bda2ac674fdb0752e08f51b/68747470733a2f2f7472617669732d63692e6f72672f6275726469757a2f7068702d63616c6c6261636b732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/burdiuz/php-callbacks)[![Coverage Status](https://camo.githubusercontent.com/015116db9431ac1f7c04baf2e96b828a25fc9a38bfd1ee9c07b517e0708bb623/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6275726469757a2f7068702d63616c6c6261636b732f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/burdiuz/php-callbacks?branch=master)[![Dependency Status](https://camo.githubusercontent.com/5f8f77697c3eb92536d89785072e71138dea9b7f32e560559b70a6bddf158d27/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536386261383739656234663437303033633030313339392f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/568ba879eb4f47003c001399)

[![Latest Stable Version](https://camo.githubusercontent.com/bce48a296d42c61e88e2bb6b66d3e198f1cdef7d5e662d18eec1108a325dd288/68747470733a2f2f706f7365722e707567782e6f72672f61637475616c776176652f63616c6c6261636b732f762f737461626c65)](https://packagist.org/packages/actualwave/callbacks) [![Total Downloads](https://camo.githubusercontent.com/d8b5b13cbfcd63f1933f2495adb8ecb8c02c67efcc2e9c9a1e23864ed8623d53/68747470733a2f2f706f7365722e707567782e6f72672f61637475616c776176652f63616c6c6261636b732f646f776e6c6f616473)](https://packagist.org/packages/actualwave/callbacks) [![License](https://camo.githubusercontent.com/4f575fc929045c85ca666bf88d6aec7a54133809dc44c0738f20bb7d9587785f/68747470733a2f2f706f7365722e707567782e6f72672f61637475616c776176652f63616c6c6261636b732f6c6963656e7365)](https://packagist.org/packages/actualwave/callbacks)

Family of Callback Wrappers allowing to store chains of delayed calls that can be started by event.

- FunctionCallback - calls global function or static method.
- MethodCallback - calls instance or static method.
- OutputCallback - outputs all arguments in JSON format.
- PropertyCallback - stores first argument as property value, works with static properties.
- VariableCallback - stores first argument as variable value, works with static properties.
- CallableQueue - calls stored callbacks passing previous result as argument, returns result of last callback.
- CallableSequence - calls stored callbacks with same arguments, returns result of last callback.

```
$variable = 'value';
$callback = new \aw\callbacks\VariableCallback('variable');
$callback('new value');
echo $variable.PHP_EOL; // new value

function doEcho($param){
  echo 'My name is: '.$param.PHP_EOL;
}

$callback = new \aw\callbacks\FunctionCallback('doEcho');
$callback('####'); // My name is: ####
```

### Installation

[](#installation)

Via [composer](https://getcomposer.org/)

```
composer require actualwave/callbacks

```

### Usage

[](#usage)

All wrappers are callables, so can be used directly as closure. CallableCollection accepts any callable including PHP closures.

```
function multiply4($value){
  return $value*4;
}

$collection = new \aw\CallableQueue();
$collection[] = function($value){
  return $value*2;
};
$collection[] = function($value){
  return $value*3;
};
$collection[] = new \aw\callbacks\FunctionCallback('multiply4');
echo 'Result: '.$collection(2).PHP_EOL; // Result: 48
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Every ~10 days

Total

4

Last Release

3783d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c10f33e471855407609160df895479e2f52f7d1e262ff56fccc8053322d47b5?d=identicon)[a\_\[w\]](/maintainers/a_[w])

---

Top Contributors

[![burdiuz](https://avatars.githubusercontent.com/u/255853?v=4)](https://github.com/burdiuz "burdiuz (28 commits)")

---

Tags

callableinterfaceobjectwrappercallback

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/actualwave-callbacks/health.svg)

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

###  Alternatives

[zenstruck/callback

Callable wrapper to validate and inject arguments.

569.6M4](/packages/zenstruck-callback)[samrap/acf-fluent

A fluent interface for the Advanced Custom Fields WordPress plugin

28656.0k4](/packages/samrap-acf-fluent)[digitalstars/simplevk

Powerful PHP library/framework for VK API bots, supporting LongPoll &amp; Callback &amp; OAuth

883.9k3](/packages/digitalstars-simplevk)[phpfluent/callback

Allows you execute callbacks in a more dynamic way

1159.2k1](/packages/phpfluent-callback)

PHPackages © 2026

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