2017 © Pedro Peláez
 

library pdo-service-provider

A PDO ServiceProvider for Silex.

image

localgod/pdo-service-provider

A PDO ServiceProvider for Silex.

  • Friday, May 8, 2015
  • by localgod
  • Repository
  • 1 Watchers
  • 0 Stars
  • 44 Installations
  • XSLT
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Build Status Latest Stable Version Total Downloads Project Status Dependency Status, (*1)

PDOServiceProvider

Summary

PDOServiceProvider is a service provider for Silex (http://silex.sensiolabs.org/), (*2)

It will allow you to access a pdo instance in your application., (*3)

Requirements

PDOServiceProvider requires php version 5.3.3 or higher., (*4)

Installation

Just add the following line to your required section in your composer.json file:, (*5)

"require" : {
    "localgod/pdo-service-provider" : "1.0.0"
}

and add these line in your application:, (*6)

register(new PDOServiceProvider(), array(
    'pdo.connection' => array(
        'driver' => 'mysql',
        'host' => 'localhost',
        'port' => 3306,
        'name' => 'name',
        'user' => 'username',
        'pass' => 'password'
    )));
} catch (PDOException $e) {
    die($e->getMessage());
}
?>

The Versions