2017 © Pedro Peláez
 

library connection-manager

A simple connection manager for any OOP db connection in PHP

image

thephpeffect/connection-manager

A simple connection manager for any OOP db connection in PHP

  • Wednesday, September 23, 2015
  • by Asperon11
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

ConnectionManager

A PHP singleton designed to keep track of multiple database connections., (*1)

Installation

The recommended way to install ConnectionManager is through composer(https://getcomposer.org/). Type the following command in your shell environment:, (*2)

php ~/composer.phar require thephpeffect/connection-manager, (*3)

Usage

The "default" connection can be accessed by the db() function without passing a connection name., (*4)

db("default", new mysqli(...));
db("stats", new PDO(...));

$result = db()->query("SELECT * FROM table1");
$statement = db("stats")->prepare("SELECT * FROM table1 WHERE a=? AND b=?");

The Versions

23/09 2015

dev-master

9999999-dev https://github.com/thephpeffect/ConnectionManager

A simple connection manager for any OOP db connection in PHP

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

database php pdo mysql mysqli

23/09 2015

v1.0

1.0.0.0 https://github.com/thephpeffect/ConnectionManager

A simple connection manager for any OOP db connection in PHP

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

database php pdo mysql mysqli