vaibhavpandeyvpz / databoss
Simple abstraction for MySQL/MariaDB and PostgreSQL database server(s), compatible with PHP >= 5.3.
1.0.1
2017-02-12 03:47 UTC
Requires
- php: ^5.3 || ^7.0
- ext-pdo: *
Requires (Dev)
- phpunit/phpunit: ^4.0 || ^5.0
Suggests
- ext-pdo_mysql
- ext-pdo_pqsql
This package is auto-updated.
Last update: 2024-11-09 18:27:30 UTC
README
Simple abstraction for MySQL/MariaDB and PostgreSQL database server(s), compatible with PHP >= 5.3.
Install
composer require vaibhavpandeyvpz/databoss
Usage
<?php $db = new Databoss\Connection([ Databoss\Connection::OPT_DATABASE => 'test', Databoss\Connection::OPT_USERNAME => 'root', Databoss\Connection::OPT_PASSWORD => '12345678', ]); /** * @desc Simplest it can be */ $track = $db->first('music', [ 'artist' => 'Tyga', 'duration{>}' => 180, ]);
Documentation
To view installation and usage instructions, visit this Wiki.
License
See LICENSE.md file.