Skip to content
Framework for web applications running on Wikimedia Toolforge.
PHP CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public_html
src
template
test/unit
.gitignore
.travis.yml
HISTORY.md
InitTool.php
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

Packagist Build Status

Tool Labs Base

Install

It's recommended you use Composer.

  • Run composer require Krinkle/toollabs-base.
  • Create a symlink from "base/" in your application's root public directory (e.g. public_html) to vendor/krinkle/toollabs-base/public_html.
  • Include vendor/autoload.php in your program.

Example

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

$kgBase = BaseTool::newFromArray( array(
	'displayTitle' => 'Example',
	'remoteBasePath' => dirname( $_SERVER['PHP_SELF'] ),
) );
$kgBase->flushMainOutput();

See Template for an example.

Versioning

This library follows the Semantic Versioning guidelines.

Releases will be numbered in the following format: <major>.<minor>.<patch>.

You can’t perform that action at this time.