PHP code example of aop-io / pecl-aop-interceptor
1. Go to this page and download the library: Download aop-io/pecl-aop-interceptor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aop-io / pecl-aop-interceptor example snippets
use Aop\Aop;
// Init
$aop = new Aop([ 'php_interceptor' => '\PeclAop\PeclAopInterceptor']);
Aop::addBefore('MyClass::get*()', function($jp) {
// your hack here
});