PHP code example of itititi / tplapidoc
1. Go to this page and download the library: Download itititi/tplapidoc 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/ */
itititi / tplapidoc example snippets
class Demo extends A {
/**
* @name 测试
* @description 无
* @method POST
* @param id int n 唯一id
* @param name string n 姓名
* @return json
* // succ
* {
* retcode: 2000000,
* msg: '操作成功'
* }
* // fail
* {
* retcode: '错误编码',
* msg: '错误信息'
* }
*/
public function test() {
}