amphp/postgres
Asynchronous, non-blocking PostgreSQL client for PHP built on Amp. Supports connection pooling, prepared statements, transactions, and concurrent queries, making it ideal for high-performance event-driven applications.
amphp/postgres is an MIT-licensed, maintained adapter (last release Feb 2026) on top of the Amp runtime, so the cost is adoption and integration, not R&D.Adopt when:
Look elsewhere when:
To executives: This is a free, MIT-licensed infrastructure component that unlocks a specific, narrow capability — running PHP services that handle many database-backed operations concurrently without one query blocking the rest. It is not a rewrite of the main application and carries no license cost. The real cost is engineering familiarity with async PHP, so the right ask is a time-boxed spike in one bounded service, measured against a concrete throughput or connection-count target, before any broader commitment. Market signal is modest — it's a specialized tool with a small community — so treat it as a contained bet, not a platform standard.
To engineering: amphp/postgres is the mature Postgres adapter for the Amp event loop: non-blocking connections, pooling, prepared statements, and transactions, actively released as of early 2026. It fits when you're building a long-running Amp service where synchronous PDO would serialize your I/O. It does not give you an ORM or Laravel integration, and it demands async discipline — blocking calls in the loop are the primary footgun. If we pursue it, scope it to one service, document the async conventions up front, and benchmark against the synchronous baseline before expanding.
How can I help you explore Laravel packages today?