amphp/mysql
Asynchronous MySQL client for PHP based on Amp.
v3.1.1
1.2M downloads/mo
#4255 most downloaded on Packagist
amphp/mysql
What this package is like to depend on
Last release 3 months ago
16 May 2026
Release timing varies
gaps range from 3 weeks to 1.7 years
Rarely documented
notes for 4 of 26 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
36 releases · first in 2015
3 releases in the last 12 months
see the full history below
Release timeline
36 releases · Nov 2015 to May 2026Releases
latest 36-
v3.1.116 May 2026Release notes
Open source →What's Changed
- Add MariaDB CI job and integration test for native UUID column by @webpatser in #144
- Silence PHP 8.5 chr() deprecation in encodeInt8 by @webpatser in #145
- Added compatibility for
amphp/[email protected]
Full Changelog: v3.1.0...v3.1.1
-
v3.1.010 May 2026Release notes
Open source →What's Changed
- Added a parameter for the default transaction isolation to
MysqlConnectionPoolto set the default transaction level when constructing the pool - Fixed setting
NULLforJSONtyped columns (#136) - Fixed decoding
MEDIUMINTcolumns using the binary protocol (#140) - Use VarString for string parameter encoding in binary protocol by @webpatser in #142
New Contributors
- @webpatser made their first contribution in #143
Full Changelog: v3.0.1...v3.1.0
- Added a parameter for the default transaction isolation to
-
v3.0.108 Nov 2025 -
v3.0.010 Mar 2024Release notes
Open source →Stable release compatible with AMPHP v3 and fibers! 🎉
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of
Promise<ResolutionType>have been replaced withResolutionType.- Classes and interfaces now are prefixed with
Mysqlto avoid collisions with similar names from other libraries. - Marked most classes as internal, leaving only interfaces and concrete implementations required to use the API or create a custom connector.
MysqlTransactionnow extendsMysqlLinkinstead ofMysqlExecutorto support nested transactions.MysqlDataTypeis now an enum of MySQL data type codes and methods to decode data based on type.- Result set field data is now available from
MysqlResult::getColumnDefinitions()which returns an array ofMysqlColumnDefinitionobjects corresponding to the result set rows. - The second param of
MysqlStatement::bind()now requires a string. Binding only makes sense with long strings anyway. MysqlConnectionis now an interface extendingSqlConnection, withSocketMysqlConnectionbeing the implementation.- Removed
MysqlConnectorsince the interface was replaced by template types onSqlConnector, i.e.SqlConnector<MysqlConfig, MysqlConnection>
Release notes
Open source →What's Changed
- Fixed support for binding to JSON columns
- Fixed connecting with TLS.
- Add support for sql_mode and fix set charset by @ruifil in #128
New Contributors
Full Changelog: v3.0.0-beta.8...v3.0.0-beta.9
Release notes
Open source →What's Changed
- Compatibility with
amphp/[email protected]. - Forbid cloning and serialization of most class instances.
Full Changelog: v3.0.0-beta.7...v3.0.0-beta.8
Release notes
Open source →What's Changed
Nested transactions have been refactored to be created simply with
MysqlTransaction::beginTransaction()instead of needing to wrap aMysqlTransactioninto aMysqlNestableTransaction. If you did not use savepoints or nested transactions, you likely will be able to upgrade to this version without any code changes.- Updated transactions for
amphp/[email protected]andamphp/[email protected]. RemovedMysqlNestableTransaction. MysqlConnectioninterface now extends the base interfaceConnectionfromamphp/sql.- Added
MysqlEncodedValue, replacingMysqlDataType::encodeValue(). - Renamed
SocketMysqlConnection::initialize()toconnect(). The first parameter now accepts an instance ofSocketConnectorinstead of aSocket. MysqlColumnDefinitionnow defines a set of getter methods instead of using public properties.
Full Changelog: v3.0.0-beta.6...v3.0.0-beta.7
Release notes
Open source →- Added
MysqlNestableTransactionwhich may be optionally used to create aMysqlLinkfrom aMysqlTransactionobject. Nested transactions are implemented using savepoints.
- Classes and interfaces now are prefixed with
-
v3.0.0-beta.930 Dec 2023 pre-releaseNothing published for this version
-
v3.0.0-beta.817 Dec 2023 pre-releaseNothing published for this version
-
v3.0.0-beta.710 Dec 2023 pre-releaseNothing published for this version
-
v3.0.0-beta.607 May 2023 pre-releaseNothing published for this version
-
v3.0.0-beta.512 Feb 2023 pre-releaseNothing published for this version
-
v3.0.0-beta.418 Dec 2022 pre-releaseNothing published for this version
-
v3.0.0-beta.314 Aug 2022 pre-releaseNothing published for this version
-
v3.0.0-beta.210 Aug 2022 pre-releaseNothing published for this version
-
v3.0.0-beta.117 Jul 2022 pre-releaseNothing published for this version
-
v2.1.325 Sep 2022Nothing published for this version
-
v2.1.201 Dec 2021Nothing published for this version
-
v2.1.104 Feb 2021Nothing published for this version
-
v2.1.010 Nov 2020Nothing published for this version
-
v2.0.010 Dec 2019Nothing published for this version
-
v2.0.0-rc130 Oct 2019 pre-releaseNothing published for this version
-
v1.2.113 Dec 2019Nothing published for this version
-
v1.2.030 Oct 2019Nothing published for this version
-
v1.1.030 Dec 2018Nothing published for this version
-
v1.0.014 Oct 2018Nothing published for this version
-
v0.3.115 Dec 2017Nothing published for this version
-
v0.3.011 Dec 2017Nothing published for this version
-
v0.2.315 Oct 2017Nothing published for this version
-
v0.2.221 Sep 2017Nothing published for this version
-
v0.2.121 Sep 2017Nothing published for this version
-
v0.2.031 Jul 2017Nothing published for this version
-
v0.1.607 Jul 2017Nothing published for this version
-
v0.1.507 Apr 2017Nothing published for this version
-
v0.1.416 Oct 2016Nothing published for this version
-
v0.1.319 Apr 2016Nothing published for this version
-
v0.1.206 Apr 2016Nothing published for this version
-
v0.1.105 Apr 2016Nothing published for this version
-
v0.1.007 Nov 2015Nothing published for this version