Manual:DoMaintenance.php

Details
doMaintenance.php file is a maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|maintenance script to verify the most important files and run some jobs automatically.

Usage
When writing a maintenance script, add  to the end of file.

Here loads  file which autoloads MediaWiki classes and configuration to run the script smoothly.