Translations:Manual:ConvertExtensionToRegistration.php/2/en

$filename is a maintenance script, which helps you migrating extensions and skins from PHP entry points to a JSON metadata file named $ext or $skin. If your extension supports older versions of MediaWiki, you should keep your PHP entry point $template until you drop support for those older versions