PHPackages                             basteyy/static-markdown-pages - 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. basteyy/static-markdown-pages

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

basteyy/static-markdown-pages
=============================

1.0.0(4y ago)07CC0-1.0PHPPHP 8.1.\*

Since Dec 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/basteyy/static-markdown-pages)[ Packagist](https://packagist.org/packages/basteyy/static-markdown-pages)[ RSS](/packages/basteyy-static-markdown-pages/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Static Markdown Pages
=====================

[](#static-markdown-pages)

A tool for using static markdown pages inside your project.

Setup
-----

[](#setup)

```
composer require basteyy/static-markdown-pages
```

Usage
-----

[](#usage)

First you need to have your markdown pages. In the following example I expect, that you have stored a couple of files inside `/var/www/storage/my_pages/`.

```
$ ls /var/www/storage/my_pages/
my_file_1.md
my_file_2.md
fancy-third-file.md
```

Every page needs to contain a few meta-data at the beginning of the document.

For example content of `fancy-third-file.md`:

```
$ cat /var/www/storage/my_pages/fancy-third-file.md
```

```
title: I'm the fancy third file!
url: /fancy-third/
author: John Doe
===

# Example Markdown Page

As you can see .. this is markdown
```

```
/** @var \basteyy\StaticMarkdownPage\Archive $staticPages */
$staticPages = new \basteyy\StaticMarkdownPage\Archive('/var/www/storage/my_pages/');
```

To get the fancy-third-file, you need to pass the url to getByUrl-Method:

```
/** @var \basteyy\StaticMarkdownPage\Archive $staticPages */
/** @var \basteyy\StaticMarkdownPage\Page $page */
$page = $staticPages->getByUrl('/fancy-third/');
```

Now you can print the file:

```
/** @var \basteyy\StaticMarkdownPage\Archive $staticPages */
/** @var \basteyy\StaticMarkdownPage\Page $page */
echo $page->getHtml();
```

That's it.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

1606d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a735923bad41df312545d6b9b5f6ab585182f3553ef7633ec32a4caff1ccaf0d?d=identicon)[basteyy](/maintainers/basteyy)

---

Top Contributors

[![basteyy](https://avatars.githubusercontent.com/u/2758879?v=4)](https://github.com/basteyy "basteyy (3 commits)")

### Embed Badge

![Health badge](/badges/basteyy-static-markdown-pages/health.svg)

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

###  Alternatives

[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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