1. Go to this page and download the library: Download evolutionphp/database 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/ */
evolutionphp / database example snippets
$data = array(
'hostname' => 'localhost', //Database Hostname
'username' => 'root', //Database Username
'password' => 'root', //Database Password
'database' => 'mydb', //Database Name
'table_prefix' => '', //Table prefix
'char_set' => 'utf8mb4', //Database chart set
'dbcollat' => 'utf8mb4_bin', //Database collation
'port' => '', //Enter if you know the port number, otherwise leave empty
);