Since the LEAP ORM was written for the Kohana PHP Framework, it is ease to install. The installation process will only take a few minutes to get up and working provided that your server is already setup to run the necessary drivers. To start using LEAP, follow these steps:
All of the source code to the LEAP ORM module for Kohana is available on github.
Locate the download in your explorer window (or in finder) and right-click. Select the unarchive/unzip option on the context menu. Once the download is unarchived/unzipped, rename the newly created folder to “leap” using all lowercase letters for the folder name.
After the module placed in the modules folder, you will need to enable the “leap” module in your application/bootstrap.php file. This is done by modifying the bootstrap by adding the “leap” module to array argument in the call to Kohana::modules().
1 Kohana::modules(array(
2 ...
3 'leap' => MODPATH . 'leap',
4 ...
5 ));
The next step will be to setup your database connections in your config/database.php. Once your database connections are setup, you should be able to use any database connection classes.
However, before you can start using LEAP’s ORM you will need to create models for each one of your database tables. These models will then allow you to take full advantage of all of LEAP’s functionality.