Skip to content
danomatic edited this page Sep 4, 2012 · 7 revisions

DABL is an ORM and MVC Framework for PHP

DABL is a database ORM that builds PHP classes to represent and interact with each table in your database. Using these classes, table rows can be created, retrieved, updated, and deleted using very simple and short commands without writing raw SQL. DABL is designed to make the repetitive tasks of database access easier using the object-oriented(http://us2.php.net/zend-engine-2.php) functionality of PHP 5. DABL also recognizes foreign key relationships and automatically creates class methods for them, whether they are one-to-many or many-to-one ($customer->getOrders() or $order->getCustomer()).

DABL uses PDO, which is available on most servers with PHP 5 installed. In the event that your hosting does not have PDO installed, there is a PDO emulator that can be used (https://github.com/ManifestWebDesign/PHP-PDO-Emulator). If your hosting has PDO installed, but does not have the PDO drivers for your database, you will have to rename the PDO classes to something like _PDO, and adjust all of your code accordingly, so that the emulator does not conflict with the real version.

DABL has been used and tested most heavily on MySQL, Postgres and MSSQL, but using its database adapter system, it can be used for any database that can be used with PHP's PDO extensions.

Included adapters:

* MSSQL
* MySQL
* Oracle
* Postgres
* SQLite

The full DABL wiki can be found at http://manifestwebdesign.com/redmine/projects/dabl/wiki

Clone this wiki locally