Skip to content

Krinkle/toollabs-base

Repository files navigation

Packagist

Toolbase

Install

It's recommended to 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

use Krinkle\Toolbase\BaseTool;

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

$kgBase = BaseTool::newFromArray( array(
	'displayTitle' => 'Example',
	'remoteBasePath' => dirname( $_SERVER['PHP_SELF'] ),
) );
// require_once __DIR__ . '/config.php';

$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>.

About

Framework for web applications running on Wikimedia Toolforge.

Resources

License

Stars

Watchers

Forks