Download the PHP package imphp/database without Composer
On this page you can find all versions of the php package imphp/database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imphp/database
More information about imphp/database
Files in imphp/database
Package database
Short Description Database library that unifies communications with multiple databases
License MIT
Informations about the package database
IMPHP - Database
This library provides a very light weight database abstraction layer, that creates consistency and ease across multiple databases. It's very easy and simple to use, unlike many of the PHP provided database drivers and what it supports on one database, it supports on all the supported databases.
Errors
Some database libraries prints warnings, some throws exceptions, deals with last error
methods and so on. Some even mixes it by having parts of their library do one thing and other parts do something else.
This library simplifies this by always dealing with database errors using exceptions. There is no exception to that rule. If you wrap your database connectivity in a try/catch
, you can be sure that your code will stop at the first error it encounters, without having to deal with warnings, checking error codes after each method call and so on. Every single return value on any method, is a successful return.
Full Documentation
You can view the Full Documentation to lean more.
Installation
Using .phar library
Clone via git
Composer (Packagist)
Usage
Each driver can be found in their own namespace such as im/database/mysqli
and im/database/sqlite3
. Each driver has it's own Connection
class based on im/database/Connection
that is used to establish connection to the database and utilize it. A query will return an instance of im/database/Result
that can be used to access the requested data.
Prepared Statements