PackageTrack
Sign in Get early access

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 2026
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 36
  1. v3.1.1 16 May 2026
    Release notes

    What's Changed

    Full Changelog: v3.1.0...v3.1.1

    Open source →
  2. v3.1.0 10 May 2026
    Release notes

    What's Changed

    • Added a parameter for the default transaction isolation to MysqlConnectionPool to set the default transaction level when constructing the pool
    • Fixed setting NULL for JSON typed columns (#136)
    • Fixed decoding MEDIUMINT columns using the binary protocol (#140)
    • Use VarString for string parameter encoding in binary protocol by @webpatser in #142

    New Contributors

    Full Changelog: v3.0.1...v3.1.0

    Open source →
  3. v3.0.1 08 Nov 2025
    Release notes
    • Fixed PHP 8.5 deprecations.

    Full Changelog: v3.0.0...v3.0.1

    Open source →
  4. v3.0.0 10 Mar 2024
    Release notes

    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 with ResolutionType.

    • Classes and interfaces now are prefixed with Mysql to 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.
    • MysqlTransaction now extends MysqlLink instead of MysqlExecutor to support nested transactions.
    • MysqlDataType is 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 of MysqlColumnDefinition objects corresponding to the result set rows.
    • The second param of MysqlStatement::bind() now requires a string. Binding only makes sense with long strings anyway.
    • MysqlConnection is now an interface extending SqlConnection, with SocketMysqlConnection being the implementation.
    • Removed MysqlConnector since the interface was replaced by template types on SqlConnector, i.e. SqlConnector<MysqlConfig, MysqlConnection>
    Open source →
    Release notes

    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

    Open source →
    Release notes

    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

    Open source →
    Release notes

    What's Changed

    Nested transactions have been refactored to be created simply with MysqlTransaction::beginTransaction() instead of needing to wrap a MysqlTransaction into a MysqlNestableTransaction. 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] and amphp/[email protected]. Removed MysqlNestableTransaction.
    • MysqlConnection interface now extends the base interface Connection from amphp/sql.
    • Added MysqlEncodedValue, replacing MysqlDataType::encodeValue().
    • Renamed SocketMysqlConnection::initialize() to connect(). The first parameter now accepts an instance of SocketConnector instead of a Socket.
    • MysqlColumnDefinition now defines a set of getter methods instead of using public properties.

    Full Changelog: v3.0.0-beta.6...v3.0.0-beta.7

    Open source →
    Release notes
    • Added MysqlNestableTransaction which may be optionally used to create a MysqlLink from a MysqlTransaction object. Nested transactions are implemented using savepoints.
    Open source →
    Release notes
    • Compatibility with v2.0 of amphp/socket
    Open source →
  5. v3.0.0-beta.9 30 Dec 2023 pre-release

    Nothing published for this version

  6. v3.0.0-beta.8 17 Dec 2023 pre-release

    Nothing published for this version

  7. v3.0.0-beta.7 10 Dec 2023 pre-release

    Nothing published for this version

  8. v3.0.0-beta.6 07 May 2023 pre-release

    Nothing published for this version

  9. v3.0.0-beta.5 12 Feb 2023 pre-release

    Nothing published for this version

  10. v3.0.0-beta.4 18 Dec 2022 pre-release

    Nothing published for this version

  11. v3.0.0-beta.3 14 Aug 2022 pre-release

    Nothing published for this version

  12. v3.0.0-beta.2 10 Aug 2022 pre-release

    Nothing published for this version

  13. v3.0.0-beta.1 17 Jul 2022 pre-release

    Nothing published for this version

  14. v2.1.3 25 Sep 2022

    Nothing published for this version

  15. v2.1.2 01 Dec 2021

    Nothing published for this version

  16. v2.1.1 04 Feb 2021

    Nothing published for this version

  17. v2.1.0 10 Nov 2020

    Nothing published for this version

  18. v2.0.0 10 Dec 2019

    Nothing published for this version

  19. v2.0.0-rc1 30 Oct 2019 pre-release

    Nothing published for this version

  20. v1.2.1 13 Dec 2019

    Nothing published for this version

  21. v1.2.0 30 Oct 2019

    Nothing published for this version

  22. v1.1.0 30 Dec 2018

    Nothing published for this version

  23. v1.0.0 14 Oct 2018

    Nothing published for this version

  24. v0.3.1 15 Dec 2017

    Nothing published for this version

  25. v0.3.0 11 Dec 2017

    Nothing published for this version

  26. v0.2.3 15 Oct 2017

    Nothing published for this version

  27. v0.2.2 21 Sep 2017

    Nothing published for this version

  28. v0.2.1 21 Sep 2017

    Nothing published for this version

  29. v0.2.0 31 Jul 2017

    Nothing published for this version

  30. v0.1.6 07 Jul 2017

    Nothing published for this version

  31. v0.1.5 07 Apr 2017

    Nothing published for this version

  32. v0.1.4 16 Oct 2016

    Nothing published for this version

  33. v0.1.3 19 Apr 2016

    Nothing published for this version

  34. v0.1.2 06 Apr 2016

    Nothing published for this version

  35. v0.1.1 05 Apr 2016

    Nothing published for this version

  36. v0.1.0 07 Nov 2015

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive