PHPackages                             guanguans/yii-goaop - 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. [Framework](/categories/framework)
4. /
5. guanguans/yii-goaop

ActiveYii[Framework](/categories/framework)

guanguans/yii-goaop
===================

Bringing the goaop to Yii. - 将 goaop 集成到 Yii。

v1.1.0(5y ago)643MITPHP

Since Oct 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/guanguans/yii-goaop)[ Packagist](https://packagist.org/packages/guanguans/yii-goaop)[ Docs](https://github.com/guanguans/yii-goaop)[ Fund](https://www.guanguans.cn/images/wechat.jpeg)[ Patreon](https://www.patreon.com/guanguans)[ RSS](/packages/guanguans-yii-goaop/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

yii-goaop
=========

[](#yii-goaop)

[![CI](https://github.com/guanguans/yii-goaop/workflows/CI/badge.svg)](https://github.com/guanguans/yii-goaop/workflows/CI/badge.svg)[![codecov](https://camo.githubusercontent.com/fc0cb214c3508dfd98b3dc2b54d367768189a73c2b2b218699acd10674514cb2/68747470733a2f2f636f6465636f762e696f2f67682f6775616e6775616e732f7969692d676f616f702f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/guanguans/yii-goaop)[![StyleCI](https://camo.githubusercontent.com/e0d94c4d4bc1eeb6b3ce20ba3db56b4a198d748b5fea82008029c36924b29f74/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3330333234393537322f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/303249572?branch=main)[![Latest Stable Version](https://camo.githubusercontent.com/fce5cc0233ba75a49ff3d187cb276f02e9340b2566a8e751071e95bf45fe07bf/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f7969692d676f616f702f76)](//packagist.org/packages/guanguans/yii-goaop)[![Total Downloads](https://camo.githubusercontent.com/0deec5a9a11b2d9cf7da104eeefe9dfa9eb7f12214038c1a819cbd95cc67d3bc/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f7969692d676f616f702f646f776e6c6f616473)](//packagist.org/packages/guanguans/yii-goaop)[![License](https://camo.githubusercontent.com/aeb12b797c096df1a2c4ce5382ebe3679c9f593f2e0307e7743423b523bbc04d/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f7969692d676f616f702f6c6963656e7365)](//packagist.org/packages/guanguans/yii-goaop)

> Bringing the goaop/framework to Yii. - 将 goaop/framework 集成到 Yii，在 Yii 中优雅的面向切面编程。

Requirement
-----------

[](#requirement)

- Yii &gt;= 2.0

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

[](#installation)

```
$ composer require guanguans/yii-goaop --prefer-dist -vvv
```

`composer.json` add:

```
"autoload": {
    "psr-4": {
        "backend\\": "backend/",
        "frontend\\": "frontend/",
        "common\\": "common/",
        "console\\": "console/",
        "app\\": ""
    }
}
```

```
$ composer dumpautoload
```

Configuration
-------------

[](#configuration)

### yii2-app-advanced

[](#yii2-app-advanced)

Config `config/main.php` file add:

```
