f3ath/lazypdo

LazyPDO is a wrapper over PHP's standard PDO class. It postpones instantiating original PDO class until one is really needed. Also it can be (un)serialized. The main goal of this class is to allow you to mock PDO instances in your unit tests.

Installs: 33 688

Dependents: 0

Stars: 3

Watchers: 2

Forks: 3

Open Issues: 0

0.0.1 2014-02-16 23:14 UTC

README

Total Downloads Latest Stable Version Travis Build SensioLabs Insight

LazyPDO is a wrapper over PHP's standard PDO class. It postpones instantiating original PDO class until one is really needed. Also it can be (un)serialized.

The main goal of this class is to allow mocking of PDO instances in unit tests.

Install

Via composer: $ composer require "f3ath/lazypdo"