Skip to content
/ leap Public
forked from bluesnowman/leap

A data access layer and ORM for any PHP framework that is designed to work with all major SQL database dialects and drivers.

Notifications You must be signed in to change notification settings

bluetechy/leap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leap for PHP

Build Status Code Coverage More...

Leap is a database management library for PHP. It was originally developed to be used in conjunction with the Kohana PHP Framework, but has since evolved and been adapted to work with any PHP framework. It is designed to work with DB2, Drizzle, Firebird, MariaDB, MS SQL, MySQL, Oracle, PostgreSQL, and SQLite. Leap acts as a common interface between the different database dialects and connections. It provides a powerful query builder and ORM. Leap's ORM is based on the active record design pattern, which utilizes PHP objects to model database tables.

Make sure to "Star" this project if you like it.

Motivation

Leap is meant to be a simple, clean project. The primary goal of Leap is to create a set of query builders and an ORM for any PHP Framework that works with all major database dialects. Implementing Leap is easy and generally more intuitive than other ORMs like Doctrine. A goal for the development of Leap was to create an ORM that can harness the power of composite keys, which many other ORMs (e.g. Kohana's official ORM, Jelly, and Sprig) cannot handle.

Features

Leap provides a number of features, such as:

Getting Started

To start using Leap, follow these steps:

  1. Just clone this repository from github.
  2. Copy the folder entitled Leap, which is in the classes folder, to your project.
  3. Add your database connection information to Leap\Config\Database.php.
  4. Add the classpath to the Leap module to your application's bootstrap class loader.
  5. Begin creating your models.

For information on how to install Leap as a Kohana module, see the tutorial on installing Leap.

Required Files

The Leap ORM module is meant to be a completely independent module. As for the files within Leap, you can remove any database plugins that you are not using.

Documentation

This project is accompanied by a companion Web site, which documents the API for the Leap ORM and has a number of examples and tutorials. You can also find other tutorials and examples online (please let us know if you find one that we should highlight here).

Further Assistance

Although Leap is simple to use with any PHP Framework, you can get further assistance by asking questions on either Kohana's Forum or Stack Overflow.

Reporting Bugs & Making Recommendations

If you find a bug in the code or if you would like to make a recommendation, we would be happy to hear from you. Here are three methods you can use to notify us:

Known Issues

Please see this project's issue tracker on github for any known issues.

Updates

Make sure that you add yourself as a watcher of this project so that you can watch for updates.

Future Development

This project is constantly being improved and extended. If you would like to contribute to Leap, please fork the project and then send us your additions/modifications using a pull request.

License

Apache v2.0

Copyright © 2011–2015 Spadefoot Team.

Unless otherwise noted, Leap is licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

A data access layer and ORM for any PHP framework that is designed to work with all major SQL database dialects and drivers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.9%
  • Other 1.1%