1. Go to this page and download the library: Download ernestdefoe/importer 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/ */
ernestdefoe / importer example snippets
bash
php flarum importer:reformat --dry-run # counts and previews, saves nothing
php flarum importer:reformat # imported posts and private messages, chunked, safe to run again
# --all every post on the forum, not only imported ones
# --no-messages leave private messages alone
# --markdown-text imports made before 0.6.0 into a forum without Markdown left it as text (**bold**); read it as Markdown