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

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

aop-io/pecl-aop-interceptor
===========================

PHP code interceptor for PHP-AOP, based on AOP PHP extension (pecl aop-beta). Provides an abstraction layer of the PHP extension 'PECL AOP', with many features to go further in the handling of the AOP with PHP.

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

Since Aug 14Pushed 11y ago2 watchersCompare

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

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

PECL AOP interceptor
====================

[](#pecl-aop-interceptor)

Interceptor using [PECL AOP extension](https://github.com/AOP-PHP/AOP) for [PHP AOP.io lib](https://github.com/aop-io/php-aop) (php-aop).

Provides an abstraction layer of 'PECL AOP extension', with many features to go further in the handling of the AOP with PHP. Beyond the possibilities of the *PECL* extension.

This package is an adapter for [PHP AOP.io lib](https://github.com/aop-io/php-aop) (an abstraction layer easy to use). The doc below assumes that you have already installed the [PHP AOP.io lib](https://github.com/aop-io/php-aop).

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

[](#getting-started)

### Install PECL AOP

[](#install-pecl-aop)

You can use *pecl*

```
    sudo pecl install aop-beta
```

or

Download the AOP PHP extension from github, compile and add the extension to your *php.ini*

```
    #Clone the repository on your computer
    git clone https://github.com/AOP-PHP/AOP
    cd AOP
    #prepare the package, you will need to have development tools for php
    phpize
    #compile the package
    ./configure
    make
    #before the installation, check that it works properly
    make test
    #install
    make install
```

Now you can add the following line to your *php.ini* to enables AOP extension

```
    extension=AOP.so
```

More doc on [PECL AOP repository](https://github.com/AOP-PHP/AOP).

### Install pecl-aop-interceptor

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

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

### Usage

[](#usage)

```
use Aop\Aop;

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

The *PECL AOP* extension support the wilcard selector, example:

```
Aop::addBefore('MyClass::get*()', function($jp) {
  // your hack here
});
```

The syntax of pointcuts selectors of *PECL AOP* extension is documented on the page [PECL AOP (pointcuts syntax)](https://github.com/AOP-PHP/AOP/blob/master/doc/Contents/chapter2.md#pointcuts-syntax).

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

License
-------

[](#license)

[MIT](https://github.com/aop-io/pecl-aop-interceptor/blob/master/LICENSE) (c) 2013, 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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

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

4342d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1688162?v=4)[Nicolas Talle](/maintainers/Nicolab)[@Nicolab](https://github.com/Nicolab)

---

Top Contributors

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

---

Tags

aoplibpeclpatch monkeyaop-phpaop-io-interceptor

### Embed Badge

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

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

###  Alternatives

[ocramius/proxy-manager

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

5.0k83.1M242](/packages/ocramius-proxy-manager)[friendsofphp/proxy-manager-lts

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

1.2k147.4M152](/packages/friendsofphp-proxy-manager-lts)[niiknow/bayes

a machine learning lib

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

Integration bridge for Go! AOP framework

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

Etechnika.eu idna-convert

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

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

1192.1k](/packages/marcelog-ding)

PHPackages © 2026

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