PHP code example of hiyokko2 / hiyokko2_text_parser

1. Go to this page and download the library: Download hiyokko2/hiyokko2_text_parser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hiyokko2 / hiyokko2_text_parser example snippets




$markdown = <<<EOF
#title(このライブラリの使い方)
#cat(プログラミング,PHP)
#thumb(/images/programming.jpg)
#pickup(100)

*見出し
このライブラリは・・・
EOF;

$parsed = Hiyokko2\TextParser::parse($markdown);