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:
Step #1: Download Source Code
All of the source code to the
LEAP ORM module for Kohana
is available on github. You can also click on the appropriate link below to download the branch you want and then
save it to your modules folder in your Kohana install.
Step #2: Unarchive/Unzip Files
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.
Step #3: Enable Module in Bootstrap
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().
Kohana::modules(array(
...
'leap' => MODPATH . 'leap',
...
));
Step #4: Setup Database Connections
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.
Step #5: Start Writing ORM Models
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.