MediaWiki-Docker/Configuration recipes/Develop PHP extension

Wikimedia maintains a number of native PHP extensions written in C, this includes: Excimer, Wmerrors, LuaSandbox

Quick install
Our packages should be available from  in all supported PHP versions. We generally upstream to Debian stable, which MediaWiki-Docker uses, and the production version will also be packaged in apt.wikimedia.org which is pre-configured in MediaWiki containers that use the production PHP version. E.g..

If you use a MediaWiki-Docker container with a PHP version different from production, then the container will have https://deb.sury.org/ pre-configured and makes packages available suitable to your PHP version, e.g..

Compile
To test changes to a C extension to PHP in the same environment as MediaWiki: