2017 © Pedro Peláez
 

yii2-extension yii2-doc

auto document tool for Yii2

image

chatfeed/yii2-doc

auto document tool for Yii2

  • Saturday, January 6, 2018
  • by chatfeed
  • Repository
  • 1 Watchers
  • 8 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 350 % Grown

The README.md

# yii2-doc

auto generate api document by using comment for yii2., (*1)

Installation

composer require chatfeed/yii2-doc "*"

Configure

    'module'=>[
        'doc' => [
            'class' => 'cfd\doc\Module',
            'modelDescriptions'=>require __DIR__.'/model_description.php',
            'modelsMap'=>[
                '\common\base_models\kds\\',
            ]
        ]
    ]

Define Customer Model

return [
    'demo'=>[
        ['object','demo','模型'],
        ['integer','id','ID'],
        ['string','name','名称'],
        ['string','desc','描述'],
        ['integer','created_at','创建时间'],
        ['integer','updated_at','更新时间'],
    ]
];

Screenshot

screenshots Thanks yii2-fast-api, (*2)

The Versions

06/01 2018

dev-master

9999999-dev

auto document tool for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar chatfeed

api yii2 doc