PHPackages                             anlewo/apiview - 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. [API Development](/categories/api)
4. /
5. anlewo/apiview

ActiveLibrary[API Development](/categories/api)

anlewo/apiview
==============

基于yii2的restful组件.一个基于yii2的restful接口组织方案，自动生成在线文档供前端工程师阅读

126PHP

Since Mar 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/CoderShawnZhang/apiview)[ Packagist](https://packagist.org/packages/anlewo/apiview)[ RSS](/packages/anlewo-apiview/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

 [ ![Laravel Excel](https://user-images.githubusercontent.com/7728097/43685313-ff1e2110-98b0-11e8-8b50-900a2b262f0f.png) ](https://laravel-excel.maatwebsite.nl)

 Api View 1.0.0
================

[](#----api-view-100)

api接口文档扩展插件图片鉴赏 [![](https://github.com/CoderShawnZhang/apiview/raw/master/img/1.png)](https://github.com/CoderShawnZhang/apiview/blob/master/img/1.png)[![](https://github.com/CoderShawnZhang/apiview/raw/master/img/2.png)](https://github.com/CoderShawnZhang/apiview/blob/master/img/2.png)[![](https://github.com/CoderShawnZhang/apiview/raw/master/img/3.png)](https://github.com/CoderShawnZhang/apiview/blob/master/img/3.png)

使用方式：
=====

[](#使用方式)

```
composer require --prefer-dist anlewo/apiview dev-master
```

配置方式
====

[](#配置方式)

### 1

[](#1)

```
"modules" => [
    'ApiView' => [
        'class' => 'Anlewo\ApiView\Module',
        'apiConfig' =>  require __DIR__.'/../../api/config/apiConfig.php',
        'apiHost' => 'http://yii2api.local.alwooo.com',
    ]
]
```

### 2

[](#2)

在api目录下的config文件夹添加apiConfig.php文件 内容如下：

```
