Skip to content

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

License

Notifications You must be signed in to change notification settings

toolforge/toolforge-php-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toolforge MySQL

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.

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages