bd808 / toolforge-mysql
Helpers for working with MySQL databases on Wikimedia's Toolforge service
v2.0.1
2020-01-03 21:13 UTC
Requires
- php: >=7.2.9
- defuse/php-encryption: ~2.1
- symfony/console: ~3.3
Requires (Dev)
This package is not auto-updated.
Last update: 2024-11-16 20:09:32 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.