PHP Classes

Liber ORM: Store and retrieve objects from database records

Recommend this page to a friend!
  Info   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 790 All time: 4,320 This week: 455Up
Version License PHP version Categories
liber-orm 1.0GNU General Publi...5.0PHP 5, Databases, Design Patterns


This class can be used to store and retrieve objects as database records.

The class can take objects of arbitrary types them and insert, update and delete them in a database table according to mapping configuration.

In Spanish:

Esta clase permite al usuario mapear objetos a tablas en bases de datos relacionales como MYSQL. Provee una manera sencilla e intuitiva de implementar la persistencia en nuestras aplicaciones.

Picture of Liber Fernández Gribov
Name: Liber Fernández Gribov <contact>
Classes: 1 package by
Country: Uruguay Uruguay
Age: 40
All time rank: 26723 in Uruguay Uruguay
Week rank: 305 Up1 in Uruguay Uruguay Up


ENGLISH To Run demo: 1. Run dummy.sql on your MYSQL Server. 2. Change the values on the config.ORM.php config file. 3. run demo.php on your browser :) To config: 1. Change configurations parameters on config.ORM.php configuration file. 2. The parameter names are self descriptive. To use: 0. The key of this ORM solution is to respect the nomenclature. 1. Create you domain objects (with setters and getters, you may add any aditional logic to your objects). 2. Create your map for each domain object. 3. If you need a different driver (not MySQL), develop it :) 4. You are ready to go :) SPANISH Para ejecutar la demostración: 1. Ejecutar dummy.sql en su servidor MySQL. 2. Cambiar los valores del archivo de configuración config.ORM.php. 3. Ejecutar demo.php desde su navegador :) Para configuración: 1. Cambiar los parámetros de configuración en el fichero de configuración config.ORM.php. 2. Los nombres de los parámetros son auto descriptivos. Para usar: 0. La clave de esta solución ORM es la de respetar la nomenclatura. 1. Cree que los objetos de dominio (con setters y getters, usted puede agregar cualquier lógica adicional a los objetos). 2. Crear un mapa para cada objeto de dominio. 3. Si usted necesita un controlador diferente (diferente de MySQL), desarrollarlo ponerla en práctica:) 4. Ya está listo para usarlo :)

  Files folder image Files  
File Role Description
Plain text file class.Driver.php Class Abstract driver
Plain text file class.Dummy.php Class Object example
Plain text file class.Dummy_Map.php Class Map example
Plain text file class.Map.php Class Abstract Map
Plain text file class.MySQL_Driver.php Class MySQL driver implementation
Plain text file class.ORM.php Class ORM class
Accessible without login Plain text file config.ORM.php Conf. Configuration file
Accessible without login Plain text file demo.php Example Example script
Accessible without login Plain text file dummy.sql Data DB creation script
Accessible without login Plain text file readme.txt Doc. DB creation script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,320
This week:455Up