Download the PHP package intelligenia/lulo without Composer
On this page you can find all versions of the php package intelligenia/lulo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download intelligenia/lulo
More information about intelligenia/lulo
Files in intelligenia/lulo
Package lulo
Short Description A minimal ORM for PHP inspired by Django
License MIT
Informations about the package lulo
lulo
A minimal ORM for PHP inspired by Django.
What's this?
This is a small and easy to use ORM based on Django's ORM API for PHP.
Requirements
PHP 5.4 and dependencies installed by composer (AdoDB and Twig template system).
Installation
lulo has been uploaded to packagist.org can be easilly installed with composer:
Documentation
Local configuration
Create a configuration.local.php in your web server with the structure defined in configuration.local.example.php.
This file must contain access credential to your database as seen in the example:
This local configuration file will be loaded automatically from configuration.php and will be used to access database.
API
- Models
- API
- Queries
Extended documents:
- Lulo
- LuloQuery
Examples
There is a test module gives you several examples of using Lulo and its query system.
Extending Lulo
Adding new DBMS SQL templates
Add a new folder in sql_templates with the name that will identify your DBMS (mssql2012, for example).
Overwrite the queries you need. Lulo template system will first load the templates you specify here and if it doesn't find the template, it will try to load it from the _default folder.
TODO
Allow models to dynamically change of table.It can be done by reimplementing getTableName method.End translation of code to English.- Translate documents to English.
Reimplement Collection to use RecordSet.Script for table creation from model.Manager class in management namespace allows creation and deletion of model tables.- Migrations.
License
MIT License.
Authors
- Lulo and Lulo query created by the team leader and main developer of this project: Diego J. Romero López at intelligenia ([email protected])
- DB abstraction layer created by several members of intelligenia team. Reviewed and extended by Gerardo Fernandez Rodríguez.
- QueryResult was done with Gerardo Fernandez Rodríguez.
- Several bugfixes and tests in MSSQL done by Francisco Morales.
- Minor translation fixes done by Brian Holsters