PHPackages                             marko/docs-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. marko/docs-markdown

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

marko/docs-markdown
===================

Canonical Marko documentation content package

0.8.4(1mo ago)0132MITPHPPHP ^8.5

Since Jun 3Pushed 4w agoCompare

[ Source](https://github.com/marko-php/marko-docs-markdown)[ Packagist](https://packagist.org/packages/marko/docs-markdown)[ RSS](/packages/marko-docs-markdown/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependencies (4)Versions (7)Used By (2)

marko/docs-markdown
===================

[](#markodocs-markdown)

Canonical Marko documentation as a Composer package — provides `MarkdownRepository` for content access by docs search drivers.

Overview
--------

[](#overview)

`marko/docs-markdown` ships the raw Markdown source of the Marko documentation tree. It is not a search package; it is a data package. The `MarkdownRepository` class exposes the doc files so that a driver package (`marko/docs-fts`) can index them without bundling its own copy of the content. This ensures the search index always reflects the same canonical documentation.

Installation
------------

[](#installation)

```
composer require marko/docs-markdown
```

The docs search driver (`marko/docs-fts`) requires this automatically — you typically do not need to install it directly.

Usage
-----

[](#usage)

```
use Marko\DocsMarkdown\MarkdownRepository;

$repo = $container->get(MarkdownRepository::class);

foreach ($repo->all() as $doc) {
    echo $doc->path;    // Relative path, e.g. "getting-started/installation.md"
    echo $doc->title;   // Extracted from first H1
    echo $doc->content; // Raw Markdown content
}

$doc = $repo->find('getting-started/installation');
```

API Reference
-------------

[](#api-reference)

- `MarkdownRepository::all()` — Return all documentation files as `MarkdownDoc[]`
- `MarkdownRepository::find(string $path)` — Return a single doc by path (without `.md` extension)
- `MarkdownDoc::$path` — Relative path within the docs tree
- `MarkdownDoc::$title` — Title extracted from first H1 heading
- `MarkdownDoc::$content` — Full Markdown content

Documentation
-------------

[](#documentation)

Full usage: [marko/docs-markdown](https://marko.build/docs/packages/docs-markdown/)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance94

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~5 days

Total

5

Last Release

30d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (24 commits)")

###  Code Quality

TestsPest

### Embed Badge

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

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

PHPackages © 2026

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