1. Go to this page and download the library: Download wtframework/dbal 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/ */
wtframework / dbal example snippets
$response = DB::unprepared("SELECT * FROM users");
$response = DB::select()->from("users")->unprepared();
$response = DB::prepare("SELECT * FROM users WHERE user_id = ?");
$response = DB::select()->from("users")->where("user_id", "?")->prepare();
$response->bind(1);
$response->execute();
$response = DB::execute("SELECT * FROM users WHERE user_id = ?", 1);
$response = DB::select()->from("users")->where("user_id", 1)->execute();
DB::insert()->into("users")();
DB::get("SELECT * FROM users WHERE user_id = ?", 1);
DB::select()->from("users")->where("user_id", 1)->get();
$response->get();
DB::all("SELECT * FROM users");
DB::select()->from("users")->all();