PHPackages                             jbzoo/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. [Templating &amp; Views](/categories/templating)
4. /
5. jbzoo/markdown

ActiveLibrary[Templating &amp; Views](/categories/templating)

jbzoo/markdown
==============

Tools to render markdown text from PHP code

7.0.2(7mo ago)21.1M—2.5%5MITPHPPHP ^8.2CI passing

Since Nov 3Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/JBZoo/Markdown)[ Packagist](https://packagist.org/packages/jbzoo/markdown)[ RSS](/packages/jbzoo-markdown/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (5)

JBZoo / Markdown
================

[](#jbzoo--markdown)

[![CI](https://github.com/JBZoo/Markdown/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/JBZoo/Markdown/actions/workflows/main.yml?query=branch%3Amaster) [![Coverage Status](https://camo.githubusercontent.com/f2df22f83400ee30ae88ac61893b2d1999e3692c31015bee39ab1c8250a3d725/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a425a6f6f2f4d61726b646f776e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/JBZoo/Markdown?branch=master) [![Psalm Coverage](https://camo.githubusercontent.com/6eff6cd80fd2e3c7e10a43285f83a969f9355d51eafea31856a300a7d7ced620/68747470733a2f2f73686570686572642e6465762f6769746875622f4a425a6f6f2f4d61726b646f776e2f636f7665726167652e737667)](https://shepherd.dev/github/JBZoo/Markdown) [![Psalm Level](https://camo.githubusercontent.com/9721de450d67f27a27e82b15c8740c92ea584716d25daf6811af372b192d1941/68747470733a2f2f73686570686572642e6465762f6769746875622f4a425a6f6f2f4d61726b646f776e2f6c6576656c2e737667)](https://shepherd.dev/github/JBZoo/Markdown) [![CodeFactor](https://camo.githubusercontent.com/817d297ce30ba7731f2f8da0d28f042fb8146c16c74ce4744d0b006715463961/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f6a627a6f6f2f6d61726b646f776e2f6261646765)](https://www.codefactor.io/repository/github/jbzoo/markdown/issues)[![Stable Version](https://camo.githubusercontent.com/4fb33aa10ee7114603e40d7aa4dfd07dc341e0ad1048df27c14801883840bf1e/68747470733a2f2f706f7365722e707567782e6f72672f6a627a6f6f2f6d61726b646f776e2f76657273696f6e)](https://packagist.org/packages/jbzoo/markdown/) [![Total Downloads](https://camo.githubusercontent.com/619712c4f759836fc0d1c0ac5e16774cf24bb224e7841878b3a4910e4806fc09/68747470733a2f2f706f7365722e707567782e6f72672f6a627a6f6f2f6d61726b646f776e2f646f776e6c6f616473)](https://packagist.org/packages/jbzoo/markdown/stats) [![Dependents](https://camo.githubusercontent.com/444bb0d9b772b89dba0c5a626a94e3589cceb38e6fbc40a1a17f4d32c183678c/68747470733a2f2f706f7365722e707567782e6f72672f6a627a6f6f2f6d61726b646f776e2f646570656e64656e7473)](https://packagist.org/packages/jbzoo/markdown/dependents?order_by=downloads) [![GitHub License](https://camo.githubusercontent.com/e955268c34effebfa3fbc08d71a35718e6bf70f363162e13c91ff487856acf5b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a627a6f6f2f6d61726b646f776e)](https://github.com/JBZoo/Markdown/blob/master/LICENSE)

Tools to render markdown text from PHP code. This library provides a simple and fluent API for generating markdown elements programmatically, including tables with advanced formatting options.

Features
--------

[](#features)

- **Markdown Elements**: Generate links, titles, images, badges, blockquotes, spoilers, and code blocks
- **Advanced Tables**: Create markdown tables with auto-indexing, custom alignments, and flexible rendering
- **Type Safety**: Full PHP 8.2+ compatibility with strict typing
- **Fluent API**: Chainable methods for intuitive table building
- **Zero Dependencies**: Lightweight with minimal external requirements

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Composer

Installing
----------

[](#installing)

```
composer require jbzoo/markdown
```

Usage
-----

[](#usage)

### Table Generation

[](#table-generation)

```
