Download the PHP package cable8mm/db-to-markdown without Composer
On this page you can find all versions of the php package cable8mm/db-to-markdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package db-to-markdown
DB to markdown
This tool generates Markdown files from a database table. It supports multiple output formats including Jekyll, Astro, Gatsby, or any custom format you create.
We have provided the API Documentation on the web. For more information, please visit https://www.palgle.com/db-to-markdown/ ❤️
Features
- [x] Any schema can generate Markdown in any desired format
- [x] Effortlessly incorporate your custom mapper and command
- [x] Implement callback body and datetime functionality
- [x] Database testing is supported
Preview

Support & Tested
| Versions | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| Available | ✅ | ✅ | ✅ | ✅ |
Installation
After installation, run the init command to create the required configuration files:
Configuration
1. Database Connection (.env)
Copy .env.example to .env and configure your database connection:
If .env is not provided, SQLite is used by default with database/database.sqlite. You can customize the SQLite path by setting DB_DATABASE in your .env file. To skip database configuration entirely, leave .env out and use php bin/console seeding to seed the built-in SQLite database.
2. Table Mapping (db-to-markdown.json)
Configure your table structure and field mapping in db-to-markdown.json:
Field Descriptions:
table: Your database table nameauthor: Default author name (used if author field is empty)category_labels: Maps category IDs to display names (optional)map.title: Column(s) for the article title (string or array)map.slug: Column for the URL slugmap.categories: Column for category mappingmap.body: Column containing HTML content (converted to Markdown)map.published_at: Published date column
Usage
Quick Start (SQLite Demo)
Available Commands
Command Options
How to Develop Custom Commands
-
Run init to create configuration files, or create them manually:
.envfor database credentialsdb-to-markdown.jsonfor table/field mapping
-
Create a mapper in
src/Mappers/to define your table field mapping (see existing examples). -
Create a format in
src/Formats/to define how output files are rendered (Markdown, Jekyll, etc.). -
Create a command in
src/Command/extendingBaseCommandor implementing your own logic. - Register your command in
bin/console.
Formatting
Test
It uses the built-in SQLite database, not your own database. It will never cause harm to your data.
License
The DB to markdown project is open-sourced software licensed under the MIT license.
All versions of db-to-markdown with dependencies
symfony/console Version ^6.0|^7.0
vlucas/phpdotenv Version ^5.0
catfan/medoo Version ^2.0
nesbot/carbon Version ^2.72.0|^3.0
cable8mm/array-flatten Version ^1.0
league/html-to-markdown Version ^5.0