PHPackages                             visuellverstehen/markdown-to-html - 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. [Framework](/categories/framework)
4. /
5. visuellverstehen/markdown-to-html

ActiveLibrary[Framework](/categories/framework)

visuellverstehen/markdown-to-html
=================================

v1.4(4y ago)41.5k[3 issues](https://github.com/visuellverstehen/markdown-to-html/issues)MITPHPPHP ^7.0|^8.0

Since Mar 2Pushed 3y ago5 watchersCompare

[ Source](https://github.com/visuellverstehen/markdown-to-html)[ Packagist](https://packagist.org/packages/visuellverstehen/markdown-to-html)[ RSS](/packages/visuellverstehen-markdown-to-html/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (4)Versions (11)Used By (0)

Markdown to HTML
================

[](#markdown-to-html)

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

[](#installation)

`composer require visuellverstehen/markdown-to-html`

Usage
-----

[](#usage)

There might be cases, if for example using [TailwindCss](https://tailwindcss.com), where you want to use custom classes to style your output.

### Getting started

[](#getting-started)

```
use VV\Markdown\Facades\Markdown;

Markdown::parse($yourContent); // The output will be HTML
```

### Configuration

[](#configuration)

First you will need to publish your vendor assets:

`$ php artisan vendor:publish`

Then choose the mardown option. this will create a `config/markdown.php` file in your app that you can modify to set your configuration.

To add or change style sets, simply add or change an array with classes that should be added to the HTML tag.

```
'default' => [
    'h1' => 'text-2xl',
    'a'  => 'link hover:text-blue',
    'p' => 'mb-5',
    'li p' => 'mb-2 ml-4',
],
```

*This example uses TailwindCSS, but you can use whatever kind of CSS you want.*

### Example Output

[](#example-output)

```
A headline
Some text

    A list item
    A list item
    Klick me

Another text
```

#### Multiple styles

[](#multiple-styles)

Define multiple styles in your config, so you can switch between them and use different stylings in different places of your application.

```
// config/markdown.php
'styles' => [
    'default' => [
        'h1' => 'text-2xl',
        'p' => 'mb-2',
    ],
    'wiki' => [
        'h1' => 'text-4xl',
        'p' => 'mb-8',
    ],
    ...
```

Define `style` to switch between styles.

```
Markdown::style('wiki')->parse($yourContent);
```

No need to define default. If nothing has been provied, markdown will look for the default style.

More about us
=============

[](#more-about-us)

- [www.visuellverstehen.de](https://visuellverstehen.de)

License
=======

[](#license)

The MIT License (MIT). Please take a look at our [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~60 days

Recently: every ~72 days

Total

7

Last Release

1534d ago

PHP version history (2 changes)v1.0.0-beta-1PHP ^7.4|^8.0

v1.4PHP ^7.0|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/57dcd9370600b66b5ad7d99dd2b633e36d3a9458e656d650045f5f5eaf540e2d?d=identicon)[visuellverstehen](/maintainers/visuellverstehen)

---

Top Contributors

[![yam3n404](https://avatars.githubusercontent.com/u/66124679?v=4)](https://github.com/yam3n404 "yam3n404 (9 commits)")[![runepiper](https://avatars.githubusercontent.com/u/4521147?v=4)](https://github.com/runepiper "runepiper (7 commits)")[![juripetersen](https://avatars.githubusercontent.com/u/43411515?v=4)](https://github.com/juripetersen "juripetersen (2 commits)")

---

Tags

bem-methodologycss3htmllaravelmarkdowntailwindcssframeworklaravelmarkdowncommonmarkLaravel-Markdowncommon markvisuellverstehen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/visuellverstehen-markdown-to-html/health.svg)

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

###  Alternatives

[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.3k7.1M63](/packages/graham-campbell-markdown)[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M367](/packages/laravel-zero-framework)

PHPackages © 2026

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