1. Go to this page and download the library: Download luisaedev/query-builder 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/ */
use LuisaeDev\QueryBuilder\QueryBuilder;
// Example of usage with mandatory connection data values
$query = new QueryBuilder([
'dbname' => 'test',
'user' => 'root',
'password' => ''
]);
use LuisaeDev\QueryBuilder\QueryBuilder;
// Example of usage with all connection data values allowed and $throws argument to prevent/allow throws PDOException
$query = new QueryBuilder([
'dbname' => 'test',
'user' => 'root',
'password' => '',
'driver' => 'mysql',
'host' => '127.0.0.1',
'port' => '3306',
'dsn-template' => '$driver:host=$host;port=$port;dbname=$dbname;charset=utf8'
], true);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.