PHP code example of dapepe / microdb

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

    

dapepe / microdb example snippets



$db = new MicroDB\PostgreSQL('127.0.0.1', 'myuser', 'mypassword', 'mydb');

foreach ($db->tables() as $tableId) {
	echo 'Scanning '.$tableId."\n";
	print_r($db->table($tableId)->fields());
}