gugusd999 / db_query_helper
There is no license information available for the latest version (v0.0.2) of this package.
quick db query
v0.0.2
2024-02-08 08:20 UTC
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');