Login   Register  
PHP Classes
elePHPant
Icontem

PHP PDO Connection Factory: Create PDO objects to connect to a database

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-06-30 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 432 This week: 4All time: 5,659 This week: 464Up
Version License PHP version Categories  
connection-factory 1.5GNU General Public Lice...5.1PHP 5, Databases
Description Author  

This class can create PDO objects to connect to a database.

It can take an array of parameters to establish a connection with a database using PDO.

The parameters can define values like the database driver name, database host, user, password and database name.

The class may also change individual connection parameters after the class object is created.

In the end it returns an object of the PDO class ready to be used by the application.

Picture of Raul
Name: Raul is available for providing paid consulting. Contact Raul .
Classes: 7 packages by
Country: Brazil Brazil
Age: 23
All time rank: 87663 in Brazil Brazil
Week rank: 105 Up7 in Brazil Brazil Up

  Files folder image Files  
File Role Description
Files folder imageCore (1 directory)
Accessible without login Plain text file test.php Example Testing file

  Files folder image Files  /  Core  
File Role Description
Files folder imagelib (1 directory)

  Files folder image Files  /  Core  /  lib  
File Role Description
Files folder imagedb (1 file)

  Files folder image Files  /  Core  /  lib  /  db  
File Role Description
  Plain text file ConnectionFactory Class Class file

 Version Control Unique User Downloads Download Rankings  
 0%Total:432All time:5,659
 This week:4This week:464Up