Framework for web apps in Wikimedia's Tool Labs environment.

v0.8.1 2017-02-28 04:30 UTC


Packagist Build Status

Tool Labs Base


It's recommended you use Composer.

  • Run composer require Krinkle/toollabs-base.
  • Create a symlink to vendor/krinkle/toollabs-base/public_html from your application's public directory.
  • Include vendor/autoload.php in your program.
  • Set $kgConf->remoteBase to where toollabs-base/public_html is exposed (e.g.` or http://localhost/mytool/public_html/base).


It's recommended to set $kgConf->remoteBase (and any variables your tool may need) from a separate config.php file.

require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/config.php';

$kgBase = BaseTool::newFromArray( array(
	'displayTitle' => 'Example',
) );

See Template for an example.


This project is released in the public domain.

BaseTool comes with a few classes from the MediaWiki 1.24 code base. MediaWiki 1.24 is a collaborative project released under the GNU General Public License v2. For full license text and authors refer to and