/
home
/
sjslayjy
/
public_html
/
theweavenest
/
vendor
/
league
/
commonmark
/
docs
/
1.4
/
Upload File
HOME
--- layout: default title: Overview --- <img class="banner" src="/images/commonmark-banner.png" alt="CommonMark for PHP" /> # Overview [](https://twitter.com/colinodell) [](https://packagist.org/packages/league/commonmark) [](https://packagist.org/packages/league/commonmark) [](LICENSE) [](https://travis-ci.org/thephpleague/commonmark) [](https://scrutinizer-ci.com/g/thephpleague/commonmark/code-structure) [](https://scrutinizer-ci.com/g/thephpleague/commonmark) {{ site.data.project.highlights.description }} ## Installation This library can be installed via Composer: ```bash composer require league/commonmark ``` See the [installation](/1.4/installation/) section for more details. ## Basic Usage Simply instantiate the converter and start converting some Markdown to HTML! ```php use League\CommonMark\CommonMarkConverter; $converter = new CommonMarkConverter(); echo $converter->convertToHtml('# Hello World!'); // <h1>Hello World!</h1> ``` <i class="fa fa-exclamation-triangle"></i> **Important:** See the [basic usage](/1.4/basic-usage/) and [security](/1.4/security/) sections for important details.