All Projects → coder-liyang → Yii2 Doc Online

coder-liyang / Yii2 Doc Online

An online document library used by Yii2 framework.

Projects that are alternatives of or similar to Yii2 Doc Online

ar-dynattribute
Provide ActiveRecord dynamic attributes stored into the single field in serialized state
Stars: ✭ 43 (+95.45%)
Mutual labels:  yii2-extension
yii2-jwt-user
JWT (JSON Web Token) User component for Yii 2
Stars: ✭ 16 (-27.27%)
Mutual labels:  yii2-extension
Yii2 Gentelella
Free admin template for backend
Stars: ✭ 266 (+1109.09%)
Mutual labels:  yii2-extension
filedb
ActiveRecord for static data definitions based on files
Stars: ✭ 72 (+227.27%)
Mutual labels:  yii2-extension
yii2-facades
Facades for Yii 2
Stars: ✭ 21 (-4.55%)
Mutual labels:  yii2-extension
yii2-blog
Simple, configurable blog module for Yii2 (post, comment, nested category, tags). + frontend, backend. + SEO! (Opengraph, Schema.org) ~~~COMING SOON V2.0~~~ Please STAR this repo
Stars: ✭ 79 (+259.09%)
Mutual labels:  yii2-extension
yii2-behaviors
Collection of useful behaviors for Yii Framework 2.0
Stars: ✭ 25 (+13.64%)
Mutual labels:  yii2-extension
Yii2 Google Maps Markers
Google Maps Markers Widget for Yii2
Stars: ✭ 16 (-27.27%)
Mutual labels:  yii2-extension
yii2-firebird
Firebird connector for Yii2 framework
Stars: ✭ 23 (+4.55%)
Mutual labels:  yii2-extension
yii2-queuemanager
Yii2 Queue Manager (Analytic & Monitor)
Stars: ✭ 18 (-18.18%)
Mutual labels:  yii2-extension
yii2-merit
Reputation engine for Yii2 用于实现积分,等级功能的设计
Stars: ✭ 16 (-27.27%)
Mutual labels:  yii2-extension
yii2-star-rating
Star rating widget based on jQuery Raty
Stars: ✭ 16 (-27.27%)
Mutual labels:  yii2-extension
collection
Basic collection library for Yii Framework 2.0
Stars: ✭ 29 (+31.82%)
Mutual labels:  yii2-extension
yii2-tinymce
Yii2 extension, tinymce wysiwyg editor
Stars: ✭ 16 (-27.27%)
Mutual labels:  yii2-extension
Yii2 Dynamicform
It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility.
Stars: ✭ 408 (+1754.55%)
Mutual labels:  yii2-extension
yii2-ledap
yii2 for ledap
Stars: ✭ 20 (-9.09%)
Mutual labels:  yii2-extension
yii2-sitemap
A Yii2 extension to generate sitemap files for large web-sites in console
Stars: ✭ 31 (+40.91%)
Mutual labels:  yii2-extension
Yii2 Selectize
selectize.js wrapper for yii2.
Stars: ✭ 18 (-18.18%)
Mutual labels:  yii2-extension
Yii2 Helpers
Collection of useful helper functions for Yii Framework 2.0
Stars: ✭ 16 (-27.27%)
Mutual labels:  yii2-extension
yii2-forms
Forms CRUD - formbuilder, generator code
Stars: ✭ 32 (+45.45%)
Mutual labels:  yii2-extension

Home page

http://www.liyangweb.com

How to install?

composer require kaopur/yii2-doc-online

How to use?

  1. Install the library.
  2. Create a new module config to web.php like this:
    'modules' => [
        'doconline' => [
            'class' => 'Kaopur\yii2_doc_online\Module',
            'defaultRoute' => 'index', //默认控制器
            'appControllers' => true, //是否检测app\controllers命名空间下的控制器
            'suffix' => '', //api后缀
            'prefix' => '', //api前缀
            'modules' => [  //需要生成文档的模块命名空间
                'app\modules\admin\Module',
            ],
        ],
    ],
    
  3. Open the url from you browser. http://url.com?r=doconline

Example

The code like this:

/**
 * 这是一个测试的Api
 * @desc 列举所有的注释格式
 * @param string $user_type |用户类型|yes|其他说明|
 * @param int $sex |性别|no|0:不限 1:男 2:女|
 * @return int status 操作码,0表示成功
 * @return array list 用户列表
 * @return int list[].id 用户ID
 * @return string list[].name 用户名字
 * @return string msg 提示信息
 * @exception 400 参数传递错误
 * @exception 500 服务器内部错误
 */
public function actionDemoapi($user_type, $sex)
{
    $result = [
        'status' => 0,
        'list' => [
            'id' => 1,
            'name' => 'kaopur'
        ],
        'msg' => 'OK'
    ];
    return \yii\helpers\Json::encode($result);
}

Show

image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].