Helpers for working with MySQL databases on Wikimedia's Toolforge service., (*1)
Installation
$ composer require bd808/toolforge-mysql
Usage
Create your session database, table, and encryption key:, (*2)
$ vendor/bin/toolforge-mysql-session-init
See toolforge-mysql-session-init --help for additional options., (*3)
Store sessions in your database:, (*4)
<?php
use Bd808\Toolforge\Mysql\SessionHandler;
$sessionHandler = new SessionHandler();
$sessionHandler->start();
See SessionHandler.php for additional options., (*5)
License
Toolforge MySQL is licensed under the MIT license. See the
LICENSE file for more details., (*6)