PHPackages                             grizz-it/dbal-pdo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. grizz-it/dbal-pdo

ActiveLibrary[Database &amp; ORM](/categories/database)

grizz-it/dbal-pdo
=================

Database abstraction layer package implementing PDO

1.0.0(5y ago)22411MITPHPPHP ^8.0

Since Apr 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/grizz-it/dbal-pdo)[ Packagist](https://packagist.org/packages/grizz-it/dbal-pdo)[ RSS](/packages/grizz-it-dbal-pdo/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

[![Build Status](https://camo.githubusercontent.com/fd2cc80565b742a7da8a139350d062dcc40f8bef3e9cc789bb3a5f7e102318d5/68747470733a2f2f7472617669732d63692e636f6d2f6772697a7a2d69742f6462616c2d70646f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/grizz-it/dbal-pdo)

GrizzIT DBAL PDO
================

[](#grizzit-dbal-pdo)

GrizzIT DBAL PDO provides a PDO implementation for [GrizzIT DBAL](https://github.com/grizz-it/dbal). This package only implements the database connection and transaction part.

Installation
------------

[](#installation)

To install the package run the following command:

```
composer require grizz-it/dbal-pdo

```

Usage
-----

[](#usage)

### Creating a connection

[](#creating-a-connection)

To establish a connection with the database through the `GrizzIt\Dbal\Pdo\Component\Connection\PdoConnection` object, it is preferred to use the supplied factory in the package.

First of, initialize the factory by adding:

```
