PHP Database library. Copied from Laravel framework.
composer require marella/phd
<?php
require 'vendor/autoload.php';
$config = require 'config/database.php'; // load config array from a file
use PhD\DB;
DB::init($config);
$users = DB::select('select * from users where active = ?', [1]);
See the wiki for more details and documentation.
See contributing guidelines before creating issues or pull requests.
Open-source software released under the MIT license.