PHP code example of divineomega / php-wikitext-parser
1. Go to this page and download the library: Download divineomega/php-wikitext-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/ */
divineomega / php-wikitext-parser example snippets
$plainText = (new WikitextParser())
->setWikitext($wikitext)
->parse();
$plainText = (new WikitextParser())
->setWikitext($wikitext)
->setFormat(Format::HTML)
->parse();
$cache = new OtherPsr6CacheItemPool();
$plainText = (new WikitextParser())
->setCache($cache)
->setWikitext($wikitext)
->parse();
bash
composer