PHPackages                             dino/aop-module - 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. dino/aop-module

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

dino/aop-module
===============

A Zend Framework 2 module for wrapping the PECL extension AOP.

5151PHP

Since Sep 4Pushed 13y agoCompare

[ Source](https://github.com/raykolbe/AOPModule)[ Packagist](https://packagist.org/packages/dino/aop-module)[ RSS](/packages/dino-aop-module/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AOPModule
=========

[](#aopmodule)

An Aspect Oriented Programming (AOP) Module for Zend Framework 2.

This AOP module wraps the PHP PECL extension [AOP](https://github.com/AOP-PHP/AOP) into Zend Framework 2. If you're not familiar with AOP, take some time to read up on [AspectJ](http://www.eclipse.org/aspectj/doc/next/progguide/index.html) (the Java implementation) and the [PHP PECL extension AOP documentation](https://github.com/AOP-PHP/AOP).

Requirements
------------

[](#requirements)

- [Zend Framework 2](http://www.github.com/zendframework/zf2)
- [PHP AOP Extension](https://github.com/AOP-PHP/AOP)
- [Doctrine Common](https://github.com/doctrine/common)

Installation
------------

[](#installation)

Installation of AOPModule uses PHP Composer. For more information about PHP Composer, please visit the official [PHP Composer site](http://getcomposer.org/).

#### Installation steps

[](#installation-steps)

1. `cd my/project/directory`
2. create a `composer.json` file with following contents:

    ```
    {
        "minimum-stability" : "dev",
        "require": {
            "dino/aop-module": "dev-master"
        }
    }
    ```
3. install PHP Composer via `curl -s http://getcomposer.org/installer | php` (on windows, download  and execute it with PHP)
4. run `php composer.phar install`
5. open `my/project/directory/config/application.config.php` and add the following key to your `modules`:

    ```
    'AOP',
    ```

#### Configuration Options

[](#configuration-options)

The only configuration option is an array of paths to where your aspects (classes) are.

```
