trismegiste/wikitext

PHP wikitext parser

1.0.2 2023-04-26 09:15 UTC

This package is not auto-updated.

Last update: 2024-11-06 16:32:09 UTC


README

This library can be used to add basic wikitext (Mediawiki-style) support to a PHP app. Its role is NOT, by any means, to replace the Parsoid library from Wikimedia foundation, but to use the same syntaxic core of wikitext. Furthermore, you can extend this parser very easily to your project specifications (specially for url generation and templates).

This repository was forked from the abandoned project mike42.me/wikitext, that's why I've created a new package on Packagist.

Code may be re-mixed and re-used under the MIT licence. See 'examples' folder for usage.

Notes about this fork

  • Abstracting
  • Removing anti-patterns
  • Unit testing
  • Template Method Design Pattern for extending the html rendering