# league/commonmark

> Extensible PHP Markdown parser for CommonMark and GitHub-Flavored Markdown

Source: https://talira.ai/catalog/league-commonmark-zhybvz8p
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / markdown](https://talira.ai/categories/developer-tools/parsing/markdown), [languages / php](https://talira.ai/categories/languages/php)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [The League of Extraordinary Packages](https://talira.ai/orgs/thephpleague.md)

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.

## Links

- Website: https://commonmark.thephpleague.com/
- GitHub: https://github.com/thephpleague/commonmark
- Docs: https://commonmark.thephpleague.com/

## 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

## Trust

Overall: 0.66 out of 1.
Signals: maintenance 1.00, adoption 0.69, momentum 0.40, community 0.86, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 73 commits in the last 90 days
- latest release 2.10.10 3 days ago
- 3.0k GitHub stars
- 142 contributors
- accepts sponsorship (Github, Tidelift, Custom)
- backed by The League of Extraordinary Packages

## Alternatives

- [Parsedown](https://talira.ai/catalog/parsedown-fqdh1kyh.md): Markdown parser in PHP: one file, no dependencies, GitHub flavored

## Sources

[^1]: https://github.com/thephpleague/commonmark/blob/2.10/LICENSE (checked 29 Nov 2026)
