emma/dbal

Emma Database Access Layer. Rely solely on the in-built PHP PDO and FAST. Also, comes with advanced Query Builder for more flexibility and searching and with parameterized queries to prevent against sqli or other sql attacks

Maintainers

Package info

github.com/debascoguy/Dbal

pkg:composer/emma/dbal

Statistics

Installs: 35

Dependents: 4

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.4 2023-12-31 14:10 UTC

This package is auto-updated.

Last update: 2026-03-01 00:42:26 UTC


README

Emma Database Access Layer. Rely solely on the in-built PHP PDO and FAST. Also, comes with advanced Query Builder for more flexibility and searching and with parameterized queries to prevent against sqli or other sql attacks

#Example:

$connection = ConnectionManager::createConnection([
          "host" => "localhost",
            "username" => "root",
            "password" => "",
            "dbname" => "mytest",
            "port" => 3306,
            "driver" => \Emma\Dbal\Connection\Drivers::MYSQL
]);

$sqlQuery = new Query();
$sqlQuery->QB()->delete()->from("table");
$criteria = []; //KeyValue pair
$dataTypes = []; //Optional
$sqlQuery = CriteriaHandler::handle($sqlQuery, $criteria, $dataTypes);

$sqlQuery->execute();

More documentation coming...