PHPackages                             anonymous-php/longlife-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. anonymous-php/longlife-pdo

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

anonymous-php/longlife-pdo
==========================

Longlife connections for looped applications

1.1.1(8y ago)018MITPHP

Since Feb 20Pushed 8y agoCompare

[ Source](https://github.com/anonymous-php/longlife-pdo)[ Packagist](https://packagist.org/packages/anonymous-php/longlife-pdo)[ RSS](/packages/anonymous-php-longlife-pdo/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (7)Used By (0)

Longlife Pdo [![Build Status](https://camo.githubusercontent.com/1c0422958cb1b87d313c6a7352763dc65c466b90772181317ee31f172c0ed9b6/68747470733a2f2f7472617669732d63692e6f72672f616e6f6e796d6f75732d7068702f6c6f6e676c6966652d70646f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/anonymous-php/longlife-pdo)
==========================================================================================================================================================================================================================================================================================================================

[](#longlife-pdo-)

This library will be helpful in case you are working with connections in workers or under process managers like PHP-PM. It provides the easiest way to stop to think about connection life cycle in looped applications.

Longlife Pdo provides an extension to the *Aura.Sql* library along with a reconnection and prepared statements cache.

### Installation

[](#installation)

```
composer require anonymous-php/longlife-pdo

```

### Usage

[](#usage)

```
