talira

league/commonmark

Extensible PHP Markdown parser for CommonMark and GitHub-Flavored Markdown

open sourceBSD-3-Clausefree

league/commonmark is a highly extensible PHP Markdown parser, created by Colin O'Dell and published by The League of Extraordinary Packages, that supports the full CommonMark spec and GitHub-Flavored Markdown. It's based on the commonmark.js reference implementation, offers converters with safety options (stripping raw HTML, blocking unsafe links), and is extended through its own extension system.

Problems it solves

  • render Markdown to HTML in PHP
  • parse GitHub-Flavored Markdown in Laravel
  • safely convert user-submitted Markdown in PHP

Features

  • full CommonMark spec
  • GitHub-Flavored Markdown converter
  • options to strip HTML and block unsafe links
  • extension system

Alternatives

The same job

These do what league/commonmark does.

  1. Parsedown Markdown parser in PHP: one file, no dependencies, GitHub flavored

Compare league/commonmark with the top 3