PHPackages                             aop-io/patchwork-interceptor - 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. aop-io/patchwork-interceptor

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

aop-io/patchwork-interceptor
============================

R&amp;D: AOP with the `antecedent/patchwork` package (stream wrapper), PHP code interceptor for AOP.io (php-aop).

v0.1(11y ago)2231MITPHPPHP &gt;=5.4

Since Aug 14Pushed 11y ago1 watchersCompare

[ Source](https://github.com/aop-io/patchwork-interceptor)[ Packagist](https://packagist.org/packages/aop-io/patchwork-interceptor)[ Docs](http://aop.io)[ RSS](/packages/aop-io-patchwork-interceptor/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Patchwork interceptor for PHP AOP
=================================

[](#patchwork-interceptor-for-php-aop)

Interceptor for [php-aop](http://aop.io) using [stream wrapper](http://php.net//manual/en/class.streamwrapper.php) of PHP via the [Patchwork](https://github.com/antecedent/patchwork) package.

This interceptor was created only for *R&amp;D* concerning the possibility of going through a protocol handler and PHP stream (stream wrapper), it does not support the interception of "around" kind, nor the interception of properties.

Use just for your own *R&amp;D* (or playing) or to inspire you when creating an interceptor.

The lib *Patchwork* is not being created for use of AOP, so this interceptor has no future. However, the PHP *stream wrapper* to create an interceptor is a viable solution!

Getting Started
---------------

[](#getting-started)

### Install pecl-aop-interceptor

[](#install-pecl-aop-interceptor)

Download [patchwork-interceptor](https://github.com/aop-io/patchwork-interceptor/archive/master.zip) (and configure your autoloader) or use composer `require: "aop-io/patchwork-interceptor"`.

### Usage

[](#usage)

```
use Aop\Aop;

// Init
$aop = new Aop([ 'php_interceptor' => '\PatchworkInterceptor\PatchworkInterceptor']);
```

The usage of the [PHP-AOP](http://aop.io/en/php/doc) abstraction layer is documented on [AOP.io](http://aop.io).

License
-------

[](#license)

[MIT](https://github.com/aop-io/patchwork-interceptor/blob/master/LICENSE) (c) 2014, Nicolas Tallefourtane.

Author
------

[](#author)

[![Nicolas Tallefourtane - Nicolab.net](https://camo.githubusercontent.com/03b0aa01a190618acc57432930c9ca7d8b3cec2152fed75890604db5398820f6/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f64376464306634373639663361613438613365636233303866306234353766633f733d3634)](http://nicolab.net)[Nicolas Talle](http://nicolab.net)[![Make a donation via Paypal](https://camo.githubusercontent.com/7b6de155df30b37b25eb5fec52f9213680c3dbf067dfb7d7e2850ac4096c7d05/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e6174655f534d2e676966)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PGRH4ZXP36GUC)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

4290d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57d786b06865bd3be3dc85d8cfe2dc6ef517c7ee67eb739ebfaf2f0c9e4b08ad?d=identicon)[Nicolab](/maintainers/Nicolab)

---

Top Contributors

[![Nicolab](https://avatars.githubusercontent.com/u/1688162?v=4)](https://github.com/Nicolab "Nicolab (2 commits)")

---

Tags

aoppatchworkstream-wrapperlibaop-io-interceptor

### Embed Badge

![Health badge](/badges/aop-io-patchwork-interceptor/health.svg)

```
[![Health](https://phpackages.com/badges/aop-io-patchwork-interceptor/health.svg)](https://phpackages.com/packages/aop-io-patchwork-interceptor)
```

###  Alternatives

[ocramius/proxy-manager

A library providing utilities to generate, instantiate and generally operate with Object Proxies

5.0k82.4M230](/packages/ocramius-proxy-manager)[friendsofphp/proxy-manager-lts

Adding support for a wider range of PHP versions to ocramius/proxy-manager

1.2k139.1M104](/packages/friendsofphp-proxy-manager-lts)[niiknow/bayes

a machine learning lib

6950.0k](/packages/niiknow-bayes)[goaop/goaop-laravel-bridge

Integration bridge for Go! AOP framework

9420.6k](/packages/goaop-goaop-laravel-bridge)[etechnika/idna-convert

Etechnika.eu idna-convert

16392.1k3](/packages/etechnika-idna-convert)[marcelog/ding

PHP Dependency Injection based on Spring(tm), with Aspect Oriented Programming, MVC

1202.1k](/packages/marcelog-ding)

PHPackages © 2026

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