PHPackages                             amphp/sql - 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. amphp/sql

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

amphp/sql
=========

Asynchronous SQL client for Amp.

v2.1.1(2mo ago)201.2M—8%5[1 issues](https://github.com/amphp/sql/issues)11MITPHPPHP &gt;=8.1CI passing

Since Oct 13Pushed 2mo ago9 watchersCompare

[ Source](https://github.com/amphp/sql)[ Packagist](https://packagist.org/packages/amphp/sql)[ Docs](https://amphp.org)[ GitHub Sponsors](https://github.com/amphp)[ RSS](/packages/amphp-sql/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (15)Used By (11)

SQL
===

[](#sql)

This package provides interfaces and classes shared by [`amphp/mysql`](https://github.com/amphp/mysql) and [`amphp/postgres`](https://github.com/amphp/postgres). See [`amphp/sql-common`](https://github.com/amphp/sql-common) for common implementations shared by these libraries.

Requirements
------------

[](#requirements)

- PHP 8.1+

We require PHP 8.2+ for development due to the Psalm version we use, but still support PHP 8.1 at runtime. However, [PHP 8.1 no longer receives updates](https://www.php.net/supported-versions.php), so please upgrade to a newer version of PHP.

Versioning
----------

[](#versioning)

`amphp/sql` follows the [semver](http://semver.org/) semantic versioning specification like all other `amphp` packages.

Security
--------

[](#security)

If you discover any security related issues, please use the private security issue reporter instead of using the public issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance83

Actively maintained with recent releases

Popularity49

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 68.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~192 days

Recently: every ~179 days

Total

15

Last Release

83d ago

Major Versions

v1.0.1 → v2.0.0-beta.12022-07-17

v1.0.2 → v2.0.0-beta.42023-01-16

PHP version history (3 changes)v1.0.0PHP &gt;=7

v2.0.0-beta.1PHP &gt;=8.1

1.x-devPHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1628287?v=4)[Aaron Piotrowski](/maintainers/Trowski)[@trowski](https://github.com/trowski)

![](https://www.gravatar.com/avatar/12852217f3369e8144bc9ce6ac2a2341c28c5512c5b3df5749bfbbd45b6877ff?d=identicon)[kelunik](/maintainers/kelunik)

![](https://www.gravatar.com/avatar/f6db63ad594446f67d79532b75c69439fd0df779cc90868b43c187c02a4221ef?d=identicon)[bwoebi](/maintainers/bwoebi)

---

Top Contributors

[![trowski](https://avatars.githubusercontent.com/u/1628287?v=4)](https://github.com/trowski "trowski (73 commits)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (20 commits)")[![kelunik](https://avatars.githubusercontent.com/u/2743004?v=4)](https://github.com/kelunik "kelunik (9 commits)")[![Bilge](https://avatars.githubusercontent.com/u/470626?v=4)](https://github.com/Bilge "Bilge (1 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (1 commits)")[![danog](https://avatars.githubusercontent.com/u/7339644?v=4)](https://github.com/danog "danog (1 commits)")[![DaveRandom](https://avatars.githubusercontent.com/u/2396425?v=4)](https://github.com/DaveRandom "DaveRandom (1 commits)")

---

Tags

amphpasyncphpsqlasyncasynchronousdatabasesqldb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/amphp-sql/health.svg)

```
[![Health](https://phpackages.com/badges/amphp-sql/health.svg)](https://phpackages.com/packages/amphp-sql)
```

###  Alternatives

[amphp/sql-common

Common classes for non-blocking SQL implementations.

131.2M5](/packages/amphp-sql-common)[amphp/postgres

Asynchronous PostgreSQL client for Amp.

110509.8k27](/packages/amphp-postgres)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[danielme85/laravel-log-to-db

Custom Laravel Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel native logging functionality.

135934.5k1](/packages/danielme85-laravel-log-to-db)[illuminated/db-profiler

Database Profiler for Laravel Web and Console Applications.

168237.4k](/packages/illuminated-db-profiler)[rah/danpu

Zero-dependency MySQL dump library for easily exporting and importing databases

64401.8k10](/packages/rah-danpu)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
