2017 © Pedro Peláez
 

library connection-manager

image

uecode/connection-manager

  • Thursday, March 14, 2013
  • by aequasi
  • Repository
  • 0 Watchers
  • 0 Stars
  • 8 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Connection Manager

Install:

To Install this, just run the shell code below., (*1)

git clone git@github.com:aequasi/ConnectionManager.git
cd ConnectionManager
composer install

OR, if you are using composer, (*2)

composer require aequasi/connection-manager dev-master

In your php file, add this at the top, changing the path to wherever it belongs, (*3)

// If you arent using composer in your global project, make sure you use the autoloader
require_once( __DIR__ . '/ConnectionManager/vendor/autoload.php' );
use Aequasi\ConnectionManager;

Then, make a yml config file (placing it wherever you need) that looks like ConnectionManager/src/Aequasi/ConnectionManager/Resources/config/connection.yml, (*4)

Use:

In your code, that has the required above, follow this example:, (*5)

ConnectionManager::$config = $customConfigFilename;
$classDb = ConnectionManager::getConnection( 'classdb', 'someuser', 'somepassword' );

$result = $classDb->executeQuery( $query )->fetchAll();

The Versions

14/03 2013

dev-master

9999999-dev

  Sources   Download

The Requires