Skip to content

R&D: PHP code interceptor for PHP-AOP based on `antecedent/patchwork` (PHP stream wrapper).

License

Notifications You must be signed in to change notification settings

aop-io/patchwork-interceptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Patchwork interceptor for PHP AOP

Interceptor for php-aop using stream wrapper of PHP via the Patchwork package.

This interceptor was created only for R&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&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

Install pecl-aop-interceptor

Download patchwork-interceptor (and configure your autoloader) or use composer require: "aop-io/patchwork-interceptor".

Usage

use Aop\Aop;

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

The usage of the PHP-AOP abstraction layer is documented on AOP.io.

License

MIT (c) 2014, Nicolas Tallefourtane.

Author

Nicolas Tallefourtane - Nicolab.net
Nicolas Talle
Make a donation via Paypal

About

R&D: PHP code interceptor for PHP-AOP based on `antecedent/patchwork` (PHP stream wrapper).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages