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.
v1.3.3
2022-02-19 08:38 UTC
Requires
- php: ~5.6|~7.0|~8.0
- acgrid/phprofiling: @stable
Requires (Dev)
- phpunit/dbunit: ^2.0
- phpunit/phpunit: ~5
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
andstring
) - 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