1. Go to this page and download the library: Download jasny/db library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jasny / db example snippets
$db = new Jasny\DB\MySQL\Connection();
Jasny\DB::connectionFactory()->register('foo');
Jasny\DB::conn('foo')->query();
Jasny\DB::connectionFactory()->unregister('foo');
$db = new Jasny\DB\MySQL\Connection();
$db->useAs('foo');
Jasny\DB::conn('foo')->query();
$db = new Jasny\DB\MySQL\Connection();
$db->useAs('default');
Jasny\DB::conn()->query();