PHPackages                             f3ath/lazypdo - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. f3ath/lazypdo

Abandoned → [lazypdo/lazypdo](/?search=lazypdo%2Flazypdo)Library[Testing &amp; Quality](/categories/testing)

f3ath/lazypdo
=============

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

v0.1.2(9y ago)545.0k2MITPHPPHP &gt;=5.3.0

Since Feb 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/f3ath/lazypdo)[ Packagist](https://packagist.org/packages/f3ath/lazypdo)[ Docs](https://github.com/f3ath/LazyPDO)[ RSS](/packages/f3ath-lazypdo/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

LazyPDO
=======

[](#lazypdo)

[![Total Downloads](https://camo.githubusercontent.com/d9c0cec4da476a5549b397539f68fdc5af4a38f58025ab76de6610fbd67becdc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66336174682f6c617a7970646f2e737667)](https://packagist.org/packages/f3ath/lazypdo)[![Latest Stable Version](https://camo.githubusercontent.com/afcde52d6afe26be254cea6211a3d5526f8972933cfcd961a352a9b44f3f1385/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66336174682f6c617a7970646f2e737667)](https://packagist.org/packages/f3ath/lazypdo)[![Travis Build](https://camo.githubusercontent.com/6c2d3b249e662c6728d513521fc946dde43a551d139e6a755a7f2185e630d3a1/68747470733a2f2f7472617669732d63692e6f72672f66336174682f6c617a7970646f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/f3ath/lazypdo)[![SensioLabs Insight](https://camo.githubusercontent.com/234ebd90b32b51bc256b5195a3d3eebee8a6a3df725d4cf0520131691a5ecc70/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f34363061313636382d623162622d343138642d626135652d3066333539623766356132392e737667)](https://insight.sensiolabs.com/projects/460a1668-b1bb-418d-ba5e-0f359b7f5a29)

LazyPDO is a wrapper over PHP's standard PDO class. It postpones the instantiation of the 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](https://getcomposer.org): `$ composer require "f3ath/lazypdo"`

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~171 days

Recently: every ~11 days

Total

6

Last Release

3615d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f342ce8504c834a3ac4fcf17b31c1e750cd4dc6f24be523d28ce2b96609a7582?d=identicon)[f3ath](/maintainers/f3ath)

---

Top Contributors

[![f3ath](https://avatars.githubusercontent.com/u/831399?v=4)](https://github.com/f3ath "f3ath (36 commits)")

---

Tags

phpunittestserializemockpdoserializableunit testlazyloadlazy load

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/f3ath-lazypdo/health.svg)

```
[![Health](https://phpackages.com/badges/f3ath-lazypdo/health.svg)](https://phpackages.com/packages/f3ath-lazypdo)
```

###  Alternatives

[php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

1718.2M399](/packages/php-mock-php-mock-phpunit)[colinodell/psr-testlogger

PSR-3 compliant test logger based on psr/log v1's, but compatible with v2 and v3 too!

1712.1M47](/packages/colinodell-psr-testlogger)[icecave/isolator

Dependency injection for global functions.

371.3M29](/packages/icecave-isolator)[elliotchance/concise

Concise is test framework for using plain English and minimal code, built on PHPUnit.

45223.8k4](/packages/elliotchance-concise)[derptest/phpmachinist

Testing object factory for PHP

3636.9k1](/packages/derptest-phpmachinist)[phpmachinist/phpmachinist

Testing object factory for PHP

3630.7k](/packages/phpmachinist-phpmachinist)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
