oito/php-micro-plugin-doctrine-dbal

Doctrine DBAL plugin for Oito PHP microframework

v1.0.0 2014-03-01 19:28 UTC

README

Uses the libraries

About

This plugin enables you to use the Dcotrine DBAL library to manage database connections, persist data and execute SQL commands.

Usage

<?php

$app = new \Oito\Micro\Application();

// the plugin will be available as: "dbal"
$app->addPlugin(new \Oito\Micro\Plugin\DoctrineDbal());

$app->dbal->query('...');