PHPackages                             wappla/laravel-markdown-to-pdf - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. wappla/laravel-markdown-to-pdf

AbandonedArchivedLibrary[PDF &amp; Document Generation](/categories/documents)

wappla/laravel-markdown-to-pdf
==============================

A simple way for generating PDFs using markdown

0.1.0(7y ago)72.1k1MITPHPPHP ^7.1

Since Apr 5Pushed 7y ago4 watchersCompare

[ Source](https://github.com/wappla/laravel-markdown-to-pdf)[ Packagist](https://packagist.org/packages/wappla/laravel-markdown-to-pdf)[ RSS](/packages/wappla-laravel-markdown-to-pdf/feed)WikiDiscussions master Synced today

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

Package still in development..
------------------------------

[](#package-still-in-development)

Markdown to pdf
===============

[](#markdown-to-pdf)

Simple package to convert markdown files to PDF in laravel.

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

[](#requirements)

- Laravel &gt; 5.5

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

[](#installation)

Install the package with composer:

```
 composer require 'wappla/laravel-markdown-to-pdf'

```

This packages uses the auto discovery feature of laravel. So there is no need to register the service provider or alias.

Usage
-----

[](#usage)

Create a blade view and add the markdown to pdf component. Between the component element you can start writing markdown.

Below i created a simple example.blade.php :

```
@component('MarkdownToPDF::layout')
# Hello
@endcomponent

```

### To view this as a PDF file in your browser you dan do:

[](#to-view-this-as-a-pdf-file-in-your-browser-you-dan-do)

```
    return \MarkdownToPDF::loadView('example')->stream();
```

The standard directory for loading views is resources/views. No need to add the blade.php extension. If you would like to specify a custom directory you can use the dot notation.

```
    return \MarkdownToPDF::loadView('custom-directory.example')->stream();
```

### Store this view in storage

[](#store-this-view-in-storage)

Specifiy a custom filename or leave blank to save your pdf in storage.

```
    return \MarkdownToPDF::loadView('example')->save('awesome-file.pdf');
```

The pdf will be stored based on your Laravel filesystem configuration. If you would like to specify a custom location you can create your own disk and add a second parameter to the save method.

The below example stores the pdf file on the public disk:

```
    return \MarkdownToPDF::loadView('example')->save('awesome-file.pdf', 'public');
```

Configuration
-------------

[](#configuration)

Use the standard `php artisan vendor:publish` laravel command an select the correct number or be more specific:

To publish all the configuration and views:

```
php artisan vendor:publish --provider="Wappla\LaravelMarkdownToPDF\MarkdownToPDFServiceProvider"

```

Only publish views:

```
php artisan vendor:publish --tag="markdown-to-pdf-views"

```

Only publish config:

```
php artisan vendor:publish --tag="markdown-to-pdf-config"

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

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

2594d ago

### Community

Maintainers

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

---

Top Contributors

[![Christophvh](https://avatars.githubusercontent.com/u/9588070?v=4)](https://github.com/Christophvh "Christophvh (8 commits)")

---

Tags

dompdflaravellaravel5markdownmarkdown-to-pdfpackagepdfphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wappla-laravel-markdown-to-pdf/health.svg)

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

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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