acgrid/rdb-helper

Deal with differences within PHP RDBMS APIs. Also provide facade class for global access. It does not try to generalize or simplify writing SQL.

Installs: 80

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/acgrid/rdb-helper

v1.4.0 2025-03-08 03:52 UTC

This package is auto-updated.

Last update: 2025-10-08 05:06:16 UTC


README

What to deal with

Tired with PHP's 3 MySQL drivers? Not sure MySQLi or PDO_MySQL?

This wrapper is try to separate client code with ALL driver-specific calls without using any ORM or huge frameworks. It is also procedure-friendly.

Features

  • Generator for iteration, client code can just foreach the result set without using driver-specific fetch methods
  • Automatic bind in-params without specifying data types (WARNING not appreciable if client or server is sensitive with blob and string)
  • Optional facades with multiple connections

TODO

  • Generated documents
  • PDO implementation
  • Does not work on HHVM due to both variadic and by reference arguments are not supported

License

MIT