Download the PHP package t4g/ha-proxy without Composer
On this page you can find all versions of the php package t4g/ha-proxy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor t4g
Package ha-proxy
Short Description Basic HAProxy Split R/W implementation for PDO
License MIT
Package ha-proxy
Short Description Basic HAProxy Split R/W implementation for PDO
License MIT
Please rate this library. Is it a good library?
Informations about the package ha-proxy
HAProxy
Introduction
This project exposes the following namespaces for use in your custom use:
- CSI\Drivers\PDO\HAProxy
EXAMPLE
For Vanilla FW
use CSI\Drivers\PDO
$proxy = new HAProxy();
$proxy->CreatMaster('mysql:host=MASTER_DB_HOST;dbname=MASTER_DB_NAME','MASTER_DB_USER','MASTER_DB_PASSWORD');
$proxy->CreateReadonly( 'mysql:host=readonly_DB_HOST;dbname=readonly_DB_NAME','readonly_DB_USER','readonly_DB_PASSWORD');
// Framework::setup($proxy);
For PDO override
use CSI\Drivers\PDO\HAProxy as PDO;
or:
if ($dsn instanceof PDO || $dsn instanceof HAProxy) {
This line happens twice on current RedBean v3.0.1, on lines 29 and 1937 on rb.php file. Repalce both.
or:
$SOME_PDO ...
$SOME_PDO = new HAProxy($SOME_PDO);
$SOME_PDO->CreateReadonly( 'mysql:host=readonly_DB_HOST;dbname=readonly_DB_NAME','readonly_DB_USER','readonly_DB_PASSWORD');
\PDO $SOME_PDO ...
Limitations
HAProxy supports the simplest MySQL Replication setup, where you have a Master, and a readonly.
Contributors & Authors
@t4g @mauricoder
All versions of ha-proxy with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package t4g/ha-proxy contains the following files
Loading the files please wait ....