Download the PHP package amphp/postgres without Composer
On this page you can find all versions of the php package amphp/postgres. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amphp/postgres
More information about amphp/postgres
Files in amphp/postgres
Package postgres
Short Description Asynchronous PostgreSQL client for Amp.
License MIT
Homepage https://amphp.org
Informations about the package postgres
amphp/postgres
AMPHP is a collection of event-driven libraries for PHP designed with fibers and concurrency in mind.
amphp/postgres
is an asynchronous Postgres client.
The library implements concurrent querying by transparently distributing queries across a scalable pool of available connections. Either ext-pgsql (bundled with PHP) or pecl-pq are required.
Features
- Exposes a non-blocking API for issuing multiple Postgres queries concurrently
- Transparent connection pooling to overcome Postgres' fundamentally synchronous connection protocol
- Support for parameterized prepared statements
- Nested transactions with commit and rollback event hooks
- Unbuffered results to reduce memory usage for large result sets
- Support for sending and receiving notifications
Installation
This package can be installed as a Composer dependency.
Requirements
Note: pecl-ev is not compatible with ext-pgsql. If you wish to use pecl-ev for the event loop backend, you must use pecl-pq.
Documentation & Examples
Prepared statements and parameterized queries support named placeholders, as well as ?
and standard numeric (i.e. $1
) placeholders.
Row values are cast to their corresponding PHP types. For example, integer columns will be an int
in the result row array.
More examples can be found in the examples
directory.
Versioning
amphp/postgres
follows the semver semantic versioning specification like all other amphp
packages.
Security
If you discover any security related issues, please use the private security issue reporter instead of using the public issue tracker.
License
The MIT License (MIT). Please see LICENSE
for more information.
All versions of postgres with dependencies
amphp/amp Version ^3
amphp/pipeline Version ^1
amphp/sql Version ^2
amphp/sql-common Version ^2