PHP code example of simbiat / db-pool

1. Go to this page and download the library: Download simbiat/db-pool 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/ */

    

simbiat / db-pool example snippets


$config = (new \Simbiat\Database\Connection)->setUser('user')->setPassword('password')->setDB('database');

(new \Simbiat\Database\Pool)->openConnection($config);

(new \Simbiat\Database\Pool)->openConnection();

checkAttributeValue(\PDO $pdo, int $attribute, mixed $value);