marella/phd

PHP Database library.

v0.0.1 2016-03-17 13:37 UTC

This package is not auto-updated.

Last update: 2024-04-24 21:12:16 UTC


README

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.