PHP Classes

XPDO Database: PDO database access wrapper

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 130 All time: 9,357 This week: 455Up
Version License PHP version Categories
xyluz_database_class 1.0Artistic License5.0PHP 5, Databases
Description 

Author

This class is a PDO database access wrapper.

It read connection configuration from a INI file build a connection string for creating a PDO object.

Additional attributes read from the configuration file can be set after the PDO object is set.

The class will forward the calls to this class object to the actual PDO object with the same function names.

Picture of seyi onifade
  Performance   Level  
Name: seyi onifade <contact>
Classes: 1 package by
Country: Nigeria Nigeria
Age: ???
All time rank: 433241 in Nigeria Nigeria
Week rank: 187 Up7 in Nigeria Nigeria Up

Example

<?php

  
class example extends Database{

     public function
__construct(){
          
$this->getLink();
           echo
$this->connected();
       }
     
   }
 
$example = new example();
 


  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file config.ini Data database access details
Plain text file database.class.php Class database class implementing PDO
Accessible without login Plain text file example.class.php Example using the database class

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:130
This week:0
All time:9,357
This week:455Up