gugusd999 / db_query_helper
quick db query
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gugusd999/db_query_helper
Requires
- php: >=5.3.0
README
this library use for make query from array to insert db and update db. to use this library you can install with composer like this.
composer require gugusd999/db_query_helper
below example to use this library.
<?php require_once "vendor/autoload.php"; use Gugusd999\DbQueryHelper; $data = [ [ "name" => "jhon", "gender" => "man", "old" => 37 ] ]; $insertQuery = ArrayToQuery::insert($data, 'my_table', ['id']); $updateQuery = ArrayToQuery::update($data, 'my_table', 'id');