PHPackages                             subzerobo/sabalim-action-wrapper - 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. subzerobo/sabalim-action-wrapper

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

subzerobo/sabalim-action-wrapper
================================

Action Wrapper Library for Before/After action handling

2.0.0(3mo ago)119.1k11MITPHPPHP ^8.5

Since Apr 17Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/subzerobo/sabalim-action-wrapper)[ Packagist](https://packagist.org/packages/subzerobo/sabalim-action-wrapper)[ RSS](/packages/subzerobo-sabalim-action-wrapper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (7)Used By (1)

Sabalim-Action-Wrapper
======================

[](#sabalim-action-wrapper)

Action Wrapper Library for Before/After Specific action handling, this library provides the abstraction layer for other libraries specially for Sabalim-Elastic-Apm-PHP-Agent.

### HandlerInterface

[](#handlerinterface)

Interface provides two functions which whould run before and after any specific action

```
interface HandlerInterface{
    public function handleBefore($parent, string $actionName, array $actionData = []);
    public function handleAfter($parent, string $actionName, array $actionData = []);
}

```

`$parent` is your main object which it's action(s) need to be wrapped for example you can pass the `redis` object `$actionName` is the context of the action you are trying to wrap `$actionData` is the extra data you whould like to pass to the wrapper

### HandlerAbstract

[](#handlerabstract)

HandlerAbstract class implements the HandlerInterface and does claculate the action event duration by default but you can pass the `start` and `end` microtime to override the default implemented code

It has the built-in DataStore to save the extra parameters passed in `handleBefore` to be used later in `handlerAfter` method.

Your custom handlers may extend this class.

```
class myCustomHandler extends HandlerAbstract
{
 	private $your_custom_private;
 	public $your_custom_public;

    public function handleBefore($request, string $actionName, array $actionData = [])
    {
	      parent::handleBefore($request, $actionName, $actionData);
	      // Your code ...
    }
	public function handleAfter($request, string $actionName, array $actionData = [])
	{
		      parent::handleAfter($request, $actionName, $actionData);
		      // Your code ...
	}
}

```

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance80

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 50% 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 ~495 days

Recently: every ~619 days

Total

6

Last Release

105d ago

Major Versions

1.0.3 → 2.0.02026-01-28

PHP version history (2 changes)v1.0.2PHP ^7.0

2.0.0PHP ^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1195878?v=4)[Ali Kaviani Hamedani](/maintainers/subzerobo)[@subzerobo](https://github.com/subzerobo)

---

Top Contributors

[![heismehrab](https://avatars.githubusercontent.com/u/40082310?v=4)](https://github.com/heismehrab "heismehrab (1 commits)")[![subzerobo](https://avatars.githubusercontent.com/u/1195878?v=4)](https://github.com/subzerobo "subzerobo (1 commits)")

---

Tags

phpphp-libraryphp7slim3

### Embed Badge

![Health badge](/badges/subzerobo-sabalim-action-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/subzerobo-sabalim-action-wrapper/health.svg)](https://phpackages.com/packages/subzerobo-sabalim-action-wrapper)
```

###  Alternatives

[muglug/package-versions-56

A backport of ocramius/package-versions that supports php ^5.6. Composer plugin that provides efficient querying for installed package versions (no runtime IO)

33995.1k](/packages/muglug-package-versions-56)

PHPackages © 2026

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