2017 © Pedro Peláez
 

library longlife-pdo

Longlife connections for looped applications

image

anonymous-php/longlife-pdo

Longlife connections for looped applications

  • Saturday, March 31, 2018
  • by anonymous-php
  • Repository
  • 0 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Longlife Pdo Build Status

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., (*1)

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

Installation

composer require anonymous-php/longlife-pdo

Usage

<?php

use \Anonymous\Longlife\LonglifePdo;

$pdo = new LonglifePdo('mysql:host=127.0.0.1;dbname=test', 'test', 'test');

// To check connection in 60 seconds after the last connection usage
$pdo->setCheckConnectionTimeout(60);

// To use prepared statements cache and limit it with 100 items
$pdo->setStatementsCacheLimit(100);

Dependencies

This packages is just an extension for the Aura.Sql so check it's requirements:, (*3)

This package requires PHP 5.6 or later; it has also been tested on PHP 7 and HHVM. We recommend using the latest available version of PHP as a matter of principle., (*4)

The Versions

31/03 2018

dev-master

9999999-dev

Longlife connections for looped applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anonymous PHP Developer

pdo mysql prepared statement reconnection statement cache

31/03 2018

1.1.1

1.1.1.0

Longlife connections for looped applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anonymous PHP Developer

pdo mysql prepared statement reconnection statement cache

31/03 2018

1.1.0

1.1.0.0

Longlife connections for looped applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anonymous PHP Developer

pdo mysql prepared statement reconnection statement cache

20/02 2018

1.0.2

1.0.2.0

Longlife connections for looped applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anonymous PHP Developer

pdo mysql prepared statement reconnection statement cache

20/02 2018

1.0.1

1.0.1.0

Longlife connections for looped applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anonymous PHP Developer

pdo mysql prepared statement reconnection statement cache

20/02 2018

1.0.0-beta1

1.0.0.0-beta1

Longlife connections for looped applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anonymous PHP Developer

pdo mysql prepared statement reconnection statement cache

20/02 2018

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anonymous PHP Developer

php pdo mysql