# league/commonmark

PHP Markdown parser that fully supports the CommonMark and GitHub-Flavored Markdown specifications.


Source: https://findsoftware.frbit.cloud/commonmark-php/
Last reviewed: 2026-11-04
Listed since: 2026-11-04

## Record

### Links

- home: https://commonmark.thephpleague.com
- repository: https://github.com/thephpleague/commonmark
- docs: https://commonmark.thephpleague.com/
- plugins: https://packagist.org/packages/league/commonmark?type=commonmark-extension

### Identity

- status: active
- maintainer: Colin O'Dell
- maintainerType: individual
- parent: unknown
- firstRelease: 2014
- hqCountry: unknown

### Kind

- category: library
- hosting: php
- language: php
- runtime: php
- runtimeMin: php 7.4
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: composer

### License

- licenseModel: open-source
- license: BSD-3-Clause

### Releases

- currentMajor: 2
- latestReleaseDate: 2026-10-31

### Adoption

- githubStargazers: 2982
- packagistDownloads: 508517014
- npmWeeklyDownloads: not applicable
- contributors: 129
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 238335
- dependentPackages: 477

### Sources

- urls: https://commonmark.thephpleague.com/ (read 2026-11-04)
- urls: https://api.github.com/repos/thephpleague/commonmark (read 2026-11-04)
- urls: https://github.com/thephpleague/commonmark/blob/2.10/README.md (read 2026-11-04)
- maintainer: https://github.com/thephpleague/commonmark/blob/2.10.7/LICENSE (read 2026-11-04)
- maintainerType: https://commonmark.thephpleague.com/ (read 2026-11-04)
- language: https://api.github.com/repos/thephpleague/commonmark (read 2026-11-04)
- category: https://github.com/thephpleague/commonmark/blob/2.10/README.md (read 2026-11-04)
- runtime: https://github.com/thephpleague/commonmark/blob/2.10/README.md (read 2026-11-04)
- runtimeMin: https://github.com/thephpleague/commonmark/blob/2.10.7/composer.json (read 2026-11-04)
- installMethod: https://github.com/thephpleague/commonmark/blob/2.10/README.md (read 2026-11-04)
- urls: https://github.com/thephpleague/commonmark/blob/2.10/README.md (read 2026-11-04)
- license: https://api.github.com/repos/thephpleague/commonmark (read 2026-11-04)
- firstRelease: https://api.github.com/repos/thephpleague/commonmark/releases (read 2026-11-04)
- currentMajor: https://api.github.com/repos/thephpleague/commonmark/releases (read 2026-11-04)
- latestReleaseDate: https://api.github.com/repos/thephpleague/commonmark/releases (read 2026-11-04)
- githubStargazers: https://api.github.com/repos/thephpleague/commonmark (read 2026-11-04)
- contributors: https://api.github.com/repos/thephpleague/commonmark/contributors?per_page=1 (read 2026-11-04)
- packagistDownloads: https://packagist.org/packages/league/commonmark.json (read 2026-11-04)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/league%2Fcommonmark (read 2026-11-04)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/league%2Fcommonmark (read 2026-11-04)

## Notes

league/commonmark is a PHP library that parses Markdown text to HTML. Its default converter follows the CommonMark specification, and a second converter class adds the GitHub-Flavored Markdown features: autolinks, disallowed raw HTML, strikethrough, tables and task lists. A PHP application calls the converter from its own code once Composer has installed the package.

The [documentation](https://commonmark.thephpleague.com/) covers configuration and customization. Colin O'Dell created the library and, according to the README, is its primary maintainer.

## Worth knowing

Raw HTML and unsafe links pass through by default. The README advises setting the html_input and allow_unsafe_links options for untrusted input, and filtering raw HTML further when it is allowed. Only UTF-8 and ASCII input is supported, so other encodings need converting first.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
