PHP code example of sheng / yii2doc

1. Go to this page and download the library: Download sheng/yii2doc library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sheng / yii2doc example snippets


/**
 * 这个里是接口名/接口说明
 * @http-method get
 * @request-param string $business_id 业务线id nction actionIndex(){}

/**
 * 一条业务线元素列表
 * @http-method get
 * @query-param string $business_id 业务线id blic function actionIndex(){}

/**
 * 这个里是接口名/接口说明
 * @http-method post
 * @form-param string $business_id 业务线id ction actionIndex(){}

/**
 * 这个里是接口名/接口说明
 * @http-method delete
 * @request-param string $business_id 业务线id 

/**
 * 这个里是接口名/接口说明
 * @http-method put
 * @body-param array $body httpbody