Skip to content

marella/phd

Repository files navigation

PhD

Coverage Status Build Status StyleCI Latest Stable Version Total Downloads Latest Unstable Version License

PHP Database library. Copied from Laravel framework.

Quick Usage

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]);

Documentation

See the wiki for more details and documentation.

Contributing

See contributing guidelines before creating issues or pull requests.

License

Open-source software released under the MIT license.