PHPackages                             marcocesarato/markdown - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. marcocesarato/markdown

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

marcocesarato/markdown
======================

This package can convert PHPDoc comments from classes into Markdown. It can parse a class file with a given file name and extracts the documentation of its functions and variables that it may contain in PHPDoc format. The package can convert the extracted documentation into a file in Markdown format.

0.1.11(6y ago)155005[1 issues](https://github.com/marcocesarato/PHP-Class-Markdown-Docs/issues)GPL-3.0-or-laterPHPPHP &gt;=4.0.0

Since Sep 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/marcocesarato/PHP-Class-Markdown-Docs)[ Packagist](https://packagist.org/packages/marcocesarato/markdown)[ RSS](/packages/marcocesarato-markdown/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP Class Markdown Documentation
================================

[](#php-class-markdown-documentation)

Version: 0.1.11 beta

Github:

Author: Marco Cesarato

Description
-----------

[](#description)

This package can convert PHPDoc comments from classes into Markdown.

It can parse a class file with a given file name and extracts the documentation of its functions and variables that it may contain in PHPDoc format.

The package can convert the extracted documentation into a file in Markdown format.

Install
-------

[](#install)

### Composer

[](#composer)

1. Install composer
2. Type `composer require marcocesarato/markdown`
3. Enjoy

Methods
-------

[](#methods)

MethodDescriptionTypeParametersReturngetMarkdownGet markdown class documentationpublic
static$filestringprintMarkdownPrint Markdown class documentationpublic
static$filegetArrayGet php array class documentationpublic
static$filearrayExample
-------

[](#example)

### Usage

[](#usage)

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

#### Output Text

[](#output-text)

```
## 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$data                                     | mixed          |
| do_action     | Do module hook actions                             |        | $name                                              | bool           |
| add_action    | Add module hook action                             |        | $name$action                                   | bool           |
| add_filter    | Add module hook filter                             |        | $name$filter                                   | bool           |
| add_request   | Add Ajax request                                   |        | $name$requestbool $public                  | bool           |
| exists        | Check if element already exists if exists it will be updated on Save else it will be inserted |        | null $whatbool $undelete                       | bool           |
| prepare       | Prepare retrieve conditions                        |        | null $whatnull $operators                      | array          |
| retrieve      | Retrieve element                                   |        | null $whatbool $encodenull $onlyFieldsnull $orderBybool $returnAsArraynull $operatorsbool $dump | arraymixed |
| fetch         |                                                    |        | $whatnull $operators                           | array          |

```

#### Markdown Result

[](#markdown-result)

CoreClass
---------

[](#coreclass)

MethodDescriptionTypeParametersReturn\_\_constructConstructorpublic\_\_initInitializeboolCoreClassConstructorgetInstanceGet singleton instanceCoreClassapply\_filtersApply module hook filters$name
$datamixeddo\_actionDo module hook actions$namebooladd\_actionAdd module hook action$name
$actionbooladd\_filterAdd module hook filter$name
$filterbooladd\_requestAdd Ajax request$name
$request
bool $publicboolexistsCheck if element already exists if exists it will be updated on Save else it will be insertednull $what
bool $undeleteboolpreparePrepare retrieve conditionsnull $what
null $operatorsarrayretrieveRetrieve elementnull $what
bool $encode
null $onlyFields
null $orderBy
bool $returnAsArray
null $operators
bool $dumparray
mixedfetch$what
null $operatorsarray

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2478d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36447518?v=4)[Marco Cesarato](/maintainers/marcocesarato)[@marcocesarato](https://github.com/marcocesarato)

---

Top Contributors

[![marcocesarato](https://avatars.githubusercontent.com/u/36447518?v=4)](https://github.com/marcocesarato "marcocesarato (10 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

---

Tags

classdocdocumentationformathtmlmarkdownmethodpdfphpphpdoctypeutility

### Embed Badge

![Health badge](/badges/marcocesarato-markdown/health.svg)

```
[![Health](https://phpackages.com/badges/marcocesarato-markdown/health.svg)](https://phpackages.com/packages/marcocesarato-markdown)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
