marcocesarato/markdown

此包可以将类中的PHPDoc注释转换为Markdown。它可以解析指定文件名的类文件,并提取其中可能包含的PHPDoc格式的函数和变量的文档。该包可以将提取的文档转换为Markdown格式的文件。

0.1.11 2019-09-11 08:22 UTC

This package is auto-updated.

Last update: 2024-09-11 20:01:33 UTC


README

版本:0.1.11 测试版

Github: https://github.com/marcocesarato/PHP-Class-Markdown-Docs

作者:Marco Cesarato

描述

此包可以将类中的PHPDoc注释转换为Markdown。

它可以解析指定文件名的类文件,并提取其中可能包含的PHPDoc格式的函数和变量的文档。

该包可以将提取的文档转换为Markdown格式的文件。

安装

Composer

  1. 安装composer
  2. 输入composer require marcocesarato/markdown
  3. 享受使用

方法

示例

用法

Markdown::printMarkdown('Sample.php');

输出文本

## CoreClass
| Method        | Description                                        | Type   | Parameters                                         | Return         |
| ------------- | -------------------------------------------------- | ------ | -------------------------------------------------- | -------------- |
| __construct   | Constructor                                        | public |                                                    |                |
| __init        | Initialize                                         |        |                                                    | bool           |
| CoreClass     | Constructor                                        |        |                                                    |                |
| getInstance   | Get singleton instance                             |        |                                                    | CoreClass      |
| apply_filters | Apply module hook filters                          |        | $name<br>$data                                     | mixed          |
| do_action     | Do module hook actions                             |        | $name                                              | bool           |
| add_action    | Add module hook action                             |        | $name<br>$action                                   | bool           |
| add_filter    | Add module hook filter                             |        | $name<br>$filter                                   | bool           |
| add_request   | Add Ajax request                                   |        | $name<br>$request<br>bool $public                  | bool           |
| exists        | Check if element already exists if exists it will be updated on Save else it will be inserted |        | null $what<br>bool $undelete                       | bool           |
| prepare       | Prepare retrieve conditions                        |        | null $what<br>null $operators                      | array          |
| retrieve      | Retrieve element                                   |        | null $what<br>bool $encode<br>null $onlyFields<br>null $orderBy<br>bool $returnAsArray<br>null $operators<br>bool $dump | array<br>mixed |
| fetch         |                                                    |        | $what<br>null $operators                           | array          |

Markdown结果

核心类