PHPackages                             cable8mm/db-to-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. [Database &amp; ORM](/categories/database)
4. /
5. cable8mm/db-to-markdown

ActiveProject[Database &amp; ORM](/categories/database)

cable8mm/db-to-markdown
=======================

DB to markdown generator

v1.3.3(2y ago)15MITPHPPHP ^8.0.2

Since Feb 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cable8mm/db-to-markdown)[ Packagist](https://packagist.org/packages/cable8mm/db-to-markdown)[ RSS](/packages/cable8mm-db-to-markdown/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (9)Versions (9)Used By (0)

DB to markdown
==============

[](#db-to-markdown)

[![code-style](https://github.com/cable8mm/db-to-markdown/actions/workflows/code-style.yml/badge.svg)](https://github.com/cable8mm/db-to-markdown/actions/workflows/code-style.yml)[![run-tests](https://github.com/cable8mm/db-to-markdown/actions/workflows/run-tests.yml/badge.svg)](https://github.com/cable8mm/db-to-markdown/actions/workflows/run-tests.yml)[![Packagist Version](https://camo.githubusercontent.com/0e52ffc1793def82de26d3633ea9003332ecd7aa250a613ad84010ae80fd54ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361626c65386d6d2f64622d746f2d6d61726b646f776e)](https://packagist.org/packages/cable8mm/db-to-markdown)[![Packagist Downloads](https://camo.githubusercontent.com/191d59f5b3933b5d8fc351b60b963194dfc2dff0f1f27ad2287580af7590b337/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361626c65386d6d2f64622d746f2d6d61726b646f776e)](https://packagist.org/packages/cable8mm/db-to-markdown/stats)[![Packagist Dependency Version](https://camo.githubusercontent.com/f25665ab09638c5cb611d1b44cbe230e0a8651bbef610737a046552de07a155d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f64622d746f2d6d61726b646f776e2f706870)](https://packagist.org/packages/cable8mm/db-to-markdown)[![Packagist Dependency Version](https://camo.githubusercontent.com/7ce7c6f0460c205a9f073e68f191eccf0dc8d77a246a3a10f680fff7ddb74eae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f64622d746f2d6d61726b646f776e2f73796d666f6e79253246636f6e736f6c65)](https://camo.githubusercontent.com/7ce7c6f0460c205a9f073e68f191eccf0dc8d77a246a3a10f680fff7ddb74eae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f64622d746f2d6d61726b646f776e2f73796d666f6e79253246636f6e736f6c65)[![Packagist Stars](https://camo.githubusercontent.com/a7d478b7f9a7a9b0128ab5c0cdd3d63949eb4fe2c4d5f272ef75f92bf9ed8cf3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6361626c65386d6d2f64622d746f2d6d61726b646f776e)](https://github.com/cable8mm/db-to-markdown/stargazers)[![Packagist License](https://camo.githubusercontent.com/5f9e30959754d89ea5c588ebd62395b2a9615592cb95aee07855f5eb38293906/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6361626c65386d6d2f64622d746f2d6d61726b646f776e)](https://camo.githubusercontent.com/5f9e30959754d89ea5c588ebd62395b2a9615592cb95aee07855f5eb38293906/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6361626c65386d6d2f64622d746f2d6d61726b646f776e)

This tool is specialized in generating Markdown files, particularly designed for creating Jekyll Markdown documents from a database. You can generate your own Markdown, such as Jekyll, Astro, Gatsby, or any other format you prefer.

We have provided the API Documentation on the web. For more information, please visit  ❤️

Features
--------

[](#features)

- Any schema can generate Markdown in any desired format
- Effortlessly incorporate your custom mapper and command
- Implement callback body and datetime functionality
- Database testing is supported

Preview
-------

[](#preview)

[![Preview](https://github.com/cable8mm/cabinet/raw/main/db-to-markdown-preview.gif?raw=true)](https://github.com/cable8mm/cabinet/blob/main/db-to-markdown-preview.gif?raw=true)

Support &amp; Tested
--------------------

[](#support--tested)

VersionsPHP 8.0.2PHP 8.1.\*PHP 8.2.\*PHP 8.3.\*Available✅✅✅✅Installation
------------

[](#installation)

```
composer create-project cable8mm/db-to-markdown
```

Usage
-----

[](#usage)

Configure `.env` to connect to your own database. If `.env` configuration is not provided, SQLite connection is established.

```
bin/console seeding
# If `.env` configuration is not provided, seeding must be performed.
```

Database connection is established,

```
bin/console create-md
# Convert the database to markdown files in the dist folder.

bin/console create-jekyll
# Convert the database to markdown files suitable for Jekyll in the dist folder.

bin/console clean
# Clear the contents of the dist folder.
```

### How to Develop Custom Commands

[](#how-to-develop-custom-commands)

1. Please fill in the database connection information in the `.env` file. You can verify it by using the composer test command.
2. You can create a mapping class in the `src/Mappers/` folder for input and a format class in the `src/Formats` for output.
3. Finally, you can create a command of your choice in the `src/Command` folder.

I have already prepared the mapper, format class, and command.

### Formatting

[](#formatting)

```
composer lint
# Modify all files to comply with the PSR-12.

composer inspect
# Inspect all files to ensure compliance with PSR-12.
```

### Test

[](#test)

It uses the built-in SQLite database, not your own database. It will never cause harm to your data. You don't need to worry about that.

```
composer test
```

License
-------

[](#license)

The DB to markdown project is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~2 days

Total

8

Last Release

800d ago

Major Versions

v0.0.1 → v1.0.02024-03-02

PHP version history (2 changes)v0.0.1PHP &gt;=8.2

v1.0.0PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/c910c874a0263a18f9f976273054cd45faa3ffbcba7891992f4ab52d0656dd93?d=identicon)[Sam Lee](/maintainers/Sam%20Lee)

---

Top Contributors

[![cable8mm](https://avatars.githubusercontent.com/u/2672043?v=4)](https://github.com/cable8mm "cable8mm (31 commits)")

---

Tags

astroconvertdatabasegatsbygeneratorjekyllmarkdownphpdatabaseimportcommandjekyll

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/cable8mm-db-to-markdown/health.svg)

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

###  Alternatives

[nwidart/db-exporter

Export your database quickly and easily as a Laravel Migration and all the data as a Seeder class.

37839.1k](/packages/nwidart-db-exporter)[bacula-web/bacula-web

The open source web based reporting and monitoring tool for Bacula

1537.5k](/packages/bacula-web-bacula-web)[elimuswift/db-exporter

Export your database quickly and easily as a Laravel Migration and all the data as a Seeder class.

364.7k](/packages/elimuswift-db-exporter)

PHPackages © 2026

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