Many of the ORMs for PHP are difficult to install, so one of the top goals of DABL is easy installation on any server. Just do the following:

  • Download DABL from https://manifestwebdesign.com/redmine/wiki/dabl/Download
  • Alternatively, you can download the latest source from our git repository at:
    git@manifestwebdesign.com:dabl
  • Unzip and upload all the files to the directory of your choice
  • Update config.php with your database connection information. This file must be included by every script that uses DABL.
  • Ensure that the class output directories (default: models and models/base) are writeable by php. You may need to CHMOD them to 0755 or 0777 with an ftp program.
  • Run generate.php from a web browser. The page should display a list of the classes it creates and finish with a green “Success.”.

While it’s not required in order for DABL to work, I highly recommend using the InnoDB storage engine for your database tables. This engine allows you to set up foreign key relationships to connect your tables and keep your database clean. DABL will recognize your foreign keys and create class methods for them (ex. $customer->getOrders() – method recognizing relationship between Customer and Order).

(503) 746-9116 | 17933 NW Evergreen Parkway, Suite 220 | Beaverton, Oregon 97006