PHPackages                             skepticalhippo/php-markdown-parser - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. skepticalhippo/php-markdown-parser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

skepticalhippo/php-markdown-parser
==================================

Markdown compiler for Laravel 4

01PHP

Since Dec 31Pushed 11y ago1 watchersCompare

[ Source](https://github.com/SkepticalHippo/php-markdown-parser)[ Packagist](https://packagist.org/packages/skepticalhippo/php-markdown-parser)[ RSS](/packages/skepticalhippo-php-markdown-parser/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Markdown Compiler for Laravel 4
===============================

[](#markdown-compiler-for-laravel-4)

### Installation

[](#installation)

Run `composer require vtalbot/markdown:1.5`

Run `php artisan config:publish vtalbot/markdown`

Then edit `config.php` in `app/config/packages/vtalbot/markdown` to your needs.

Add `'VTalbot\Markdown\MarkdownServiceProvider',` to `providers` in `app/config/app.php`and `'Markdown' => 'VTalbot\Markdown\Facades\Markdown',` to `aliases` in `app/config/app.php`

### Usage

[](#usage)

```
http://domain.name/test.md

```

If `test.md` doesn't exists in the `public` directory, it will search for `test.md` in `app/markdown` directory. If found, compile it if needed and return the result.

```
Markdown::make('file-in-markdown-directory');
```

Or, you can compile a simple string:

```
Markdown::string('#test');
```

To handle markdown file not found:

```
Markdown::setNotFoundHandler(function($file) { return 'Markdown file not found'; });
Markdown::setNotFoundHandler('MarkdownController@missing');
```

### Configuration

[](#configuration)

KeyDefault valueDescription`paths``array('/markdown')`Directory where to find the markdown files.`routes``array('',)`Routes prefixes.`extensions``array('markdown','md')`Extensions used to set routes.`add_routes``true`Enable the creation of routes.`empty_element_suffix``' />'`Suffix for empty element (br, hr).`tab_width``4`Tab character width.`no_markup``false`Prevent HTML tags to be passed to output.`no_entities``false`Convert entities like &amp;lt; to &amp;amp;.`predef_urls``array()`Add reference for urls. `array('ref' => '//goo.gl')`: \[google\]\[ref\]`predef_titles``array()`Same as `predef_urls`.`use_extra``true`Use Markdown with extra, eg.: [fenced code block](http://michelf.ca/projects/php-markdown/extra/#fenced-code-blocks).`fn_id_prefix``''`Prefix for ID attributes generated by [footnotes](http://michelf.ca/projects/php-markdown/extra/#footnotes).`fn_link_title``''`Title for [footnotes](http://michelf.ca/projects/php-markdown/extra/#footnotes) links.`fn_backlink_title``''`Same as `fn_link_title`.`fn_link_class``'footnote-ref'`CSS class for [footnotes](http://michelf.ca/projects/php-markdown/extra/#fenced-code-blocks) links and backlinks.`fn_backlink_class``'footnote-backref'`Same as `fn_link_class`.`code_class_prefix``''`Prepend CSS class to [fenced code block](http://michelf.ca/projects/php-markdown/extra/#fenced-code-blocks).`code_attr_on_pre``false`Put attributes on `pre` instead of `code`.`predef_abbr``array()`Create predefine [abbreviations](http://michelf.ca/projects/projects/php-markdown/extra/#abbr).For more information on the Markdown configuration, you may refer to  .

### Changelog

[](#changelog)

#### 1.5

[](#15)

- Change deprecated dependency.
- Add Markdown file not found handler.
- Add configurations based on the new dependency.
- Add some tests.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/skepticalhippo-php-markdown-parser/health.svg)

```
[![Health](https://phpackages.com/badges/skepticalhippo-php-markdown-parser/health.svg)](https://phpackages.com/packages/skepticalhippo-php-markdown-parser)
```

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k40.0M2.8k](/packages/ergebnis-composer-normalize)

PHPackages © 2026

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