PHP Classes

PHP ORM Library: Store and retrieve objects from databases with PDO

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


This package can store and retrieve objects from databases with PDO.

It provides a mapper base class that should be extended by classes of objects to be stored in a database to define details like the database table to access its records.

The base class can create new objects, find database table records and load them in class objects, provide setter and getter functions of each of the database table records mapped to class variables, return objects as arrays in the JSON format. delete existing objects, etc..

A separate database access class is used to execute queries using the PDO extension.

Picture of Carlo Pietrobattista
  Performance   Level  
Name: Carlo Pietrobattista <contact>
Classes: 5 packages by
Country: Italy Italy
Age: 45
All time rank: 121547 in Italy Italy
Week rank: 301 Up13 in Italy Italy Up

  Files folder image Files  
File Role Description
Files folder imageexamples (1 file)
Plain text file PtcDb.php Class database connection manager component
Plain text file PtcMapper.php Class object relational mapping component
Plain text file PtcQueryBuilder.php Class query builder component

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file ptcmapper-ex.php Example example file 14KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHP PDO Fluent Query Builder Download .zip .tar.gz All queries from the orm interface are handled by the fluent query builder Required
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,983
This week:455Up