https://github.com/f3ath/lazypdo
(un)serializable PHP PDO with lazy initialization
https://github.com/f3ath/lazypdo
Last synced: 11 months ago
JSON representation
(un)serializable PHP PDO with lazy initialization
- Host: GitHub
- URL: https://github.com/f3ath/lazypdo
- Owner: f3ath
- License: mit
- Created: 2011-06-05T21:30:42.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2016-06-22T00:14:59.000Z (almost 10 years ago)
- Last Synced: 2025-05-23T01:37:31.335Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 160 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
LazyPDO
=======
[](https://packagist.org/packages/f3ath/lazypdo)
[](https://packagist.org/packages/f3ath/lazypdo)
[](https://travis-ci.org/f3ath/lazypdo)
[](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"`