PHP Classes

Connection Manager: Database connection abstraction

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 2,034 All time: 1,931 This week: 488Up
Version License Categories
connectionmanager 1.0.0GNU General Publi...Databases
Description 

Author

The ConnectionManager class is an example of providing abstraction to database connectivity using the factory design pattern.

The factory method in the ConnectionManagerFactory class returns the correct ConnectionManager object according to the chosen database type, i.e MySQL or MSSQL.

To add support to other databases one can extend the ConnectionManager class.

Picture of Sujay Bhowmick
Name: Sujay Bhowmick <contact>
Classes: 5 packages by
Country: India India
Age: 46
All time rank: 624 in India India
Week rank: 178 Down21 in India India Down

  Files folder image Files (5)  
File Role Description
Plain text file ConnectionManager.php Class Base Class and SubClasses for the ConnectionManager
Accessible without login Plain text file ConnectionManagerExample.php Example Example for ConnectionManager
Plain text file ConnectionManagerFactory.php Class Factory Method Class
Accessible without login Plain text file constants.php Conf. Supporting include file
Accessible without login Plain text file DBTypes.php Conf. Supporting include file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,034
This week:0
All time:1,931
This week:488Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2337