bd808/toolforge-mysql

Helpers for working with MySQL databases on Wikimedia's Toolforge service

v1.0.0 2017-07-26 05:54 UTC

README

Helpers for working with MySQL databases on Wikimedia's Toolforge service.

Installation

$ composer require bd808/toolforge-mysql

Usage

Storing sessions in ToolsDB

Create your session database, table, and encryption key:

$ vendor/bin/toolforge-mysql-session-init

See toolforge-mysql-session-init --help for additional options.

Store sessions in your database:

<?php
use Bd808\Toolforge\Mysql\SessionHandler;

$sessionHandler = new SessionHandler();
$sessionHandler->start();

See SessionHandler.php for additional options.

License

Toolforge MySQL is licensed under the MIT license. See the LICENSE file for more details.