1. Go to this page and download the library: Download olajoscs/querybuilder 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/ */
olajoscs / querybuilder example snippets
$myDIContainer->singleton('connection', function() {
// Create an own config object, which extends the ConnectionConfig abstract class, or implements the Config interface
$configArray = Factory = new \OlajosCs\QueryBuilder\ConnectionFactory();
// Use the ConnectionFactory to create the Connection object by the PDO
$connection = $connectionFactory->create($pdo);
return $connection;
});
$connection->transaction(function() use ($connection) {
$connection->get(...);
});