PHP code example of itxq / api-doc-php
1. Go to this page and download the library: Download itxq/api-doc-php 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/ */
itxq / api-doc-php example snippets
// 引入扩展(具体路径请根据你的目录结构自行修改)
// 引入扩展(具体路径请根据你的目录结构自行修改)
�API类2
'filter_method' => ['__construct'], // 要过滤的方法名称
];
$api = new \itxq\apidoc\BootstrapApiDoc($config);
$doc = $api->getHtml();
exit($doc);