Parsoid/PHP

Parsoid/PHP is the Parsoid codebase implemented in PHP. It is a port of (and replaces) the original Parsoid codebase, written in JavaScript.

Parsoid/PHP is the version running on Wikimedia Foundation servers in production on the current development version of MediaWiki (1.35). The integration of Parsoid/PHP with the core MediaWiki codebase is still in active development. If you are running MediaWiki 1.34 or earlier, you should probably stick with the JavaScript implementation of Parsoid for now. Installation instructions for Parsoid/JS are on the main Parsoid page.

Developer setup
You need to install the Parsoid, ParsoidBatchAPI (until T248340 is fixed) and VisualEditor extensions (assuming you want to test VisualEditor).

Then add the following to your : Note that the business with   and   is only necessary for developers, who want to ensure they are running from the latest git version of Parsoid, not the version included in   as a library. As the MediaWiki 1.35 LTS release nears, we'll provide alternative (simpler) install directions for ordinary users.

If you're serving MediaWiki with Nginx, you'll need to also add something like this to your server conf: To test proper configuration, visit   where   is the hostname in your. (Note that production WMF servers do not expose the Parsoid REST api to the external network.)

Some other notes about configuration:


 * https://github.com/wikimedia/parsoid/tree/master/extension


 * https://gerrit.wikimedia.org/r/#/c/mediawiki/services/parsoid/+/572034/7/tests/RTTestSettings.php


 * https://gerrit.wikimedia.org/r/#/c/operations/mediawiki-config/+/576169/1/wmf-config/CommonSettings.php


 * T248343

Historical notes

 * Parsing/Notes/Moving_Parsoid_Into_Core