PHPackages                             ltsc/iaop - 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. ltsc/iaop

ActiveLibrary

ltsc/iaop
=========

1.0-beta(7y ago)04Apache2PHP

Since Apr 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/erikaemma/LtscIAOP)[ Packagist](https://packagist.org/packages/ltsc/iaop)[ RSS](/packages/ltsc-iaop/feed)WikiDiscussions master Synced 2mo ago

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

IAPO
====

[](#iapo)

Usage
-----

[](#usage)

- Method 1

```
//Your class instance
$myObj = new MyObj();
//You can add one $before and one $after there,
//or add after
$demo = new AOP($myObj);
$demo->addBefore(function($method, $arguments) {
    //do something
    //$method and $arguments recv the method(argument[])
});
$demo->addAfter(function($result, $method, $arguments) {
    //do something
    //$result recv the return of method(argument[])
});
$demo->myFunc(...something...);
```

- Method 2

    You can just write your class that extends the AOP class, then you can get IDE's automatic prompt.

Standard
--------

[](#standard)

**$before and $after must return a bool.**

thrown
------

[](#thrown)

- `AopException`

    - When `set` or `add` something failed;
    - When the `myFunc` in `$myObj` not exists.
- `CallException`

    - When any callback of $before or $after return false

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

2583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a0e8c42755f0328441d379a5117fcfee6e7f3317792fc74a889237b0e54514a?d=identicon)[erikaemma](/maintainers/erikaemma)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ltsc-iaop/health.svg)

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

PHPackages © 2026

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