amqp

Communicate with any AMQP compliant server


This extension can communicate with any AMQP spec 0-9-1 compatible server, such as RabbitMQ, OpenAMQP and Qpid, giving you the ability to create and delete exchanges and queues, as well as publish to any exchange and consume from any queue.

License: PHP License

Latest releases

Version Release Download
2.1.2 2024-01-22 amqp-2.1.2.tgz
2.1.1 2023-10-12 amqp-2.1.1.tgz
2.1.0 2023-09-07 amqp-2.1.0.tgz
2.0.0 2023-08-20 amqp-2.0.0.tgz
2.0.0RC1 2023-08-15 amqp-2.0.0RC1.tgz
Show all releases

Changelog

Version Message
2.1.2 - Fix missing debug symbols for memory checks (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/531)
- Fix nullability issue in AMQPBasicProperties (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/532)
- Ignore setfacl errors (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/5548760)
- Only restart on failure (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/a37c5f1)
- Bump actions/checkout from 4.1.0 to 4.1.1 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/506)
- Bump awalsh128/cache-apt-pkgs-action from 1.3.0 to 1.3.1 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/509)
- Bump fkirc/skip-duplicate-actions from 5.3.0 to 5.3.1 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/507)
- Bump phpstan/phpdoc-parser from 1.24.2 to 1.24.3 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/513)
- Bump phpstan/phpdoc-parser from 1.24.3 to 1.24.4 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/516)
- Bump phpstan/phpdoc-parser from 1.24.4 to 1.24.5 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/521)
- Bump phpstan/phpdoc-parser from 1.24.5 to 1.25.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/524)
- Bump shivammathur/setup-php from 2.26.0 to 2.27.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/510)
- Bump shivammathur/setup-php from 2.27.0 to 2.27.1 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/512)
- Bump shivammathur/setup-php from 2.27.1 to 2.28.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/515)
- Bump shivammathur/setup-php from 2.28.0 to 2.29.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/528)
- Bump squizlabs/php_codesniffer from 3.7.2 to 3.8.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/520)
- Bump squizlabs/php_codesniffer from 3.8.0 to 3.8.1 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/527)
- Bump symplify/easy-coding-standard from 12.0.11 to 12.0.13 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/519)
- Bump symplify/easy-coding-standard from 12.0.13 to 12.1.3 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/526)
- Bump symplify/easy-coding-standard from 12.0.8 to 12.0.9 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/517)
- Bump symplify/easy-coding-standard from 12.0.9 to 12.0.11 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/518)
- Bump symplify/easy-coding-standard from 12.1.3 to 12.1.7 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/529)
- Bump symplify/easy-coding-standard from 12.1.7 to 12.1.8 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/530)

For a complete list of changes see:
https://github.com/php-amqp/php-amqp/compare/v2.1.1...v2.1.2
2.1.1 - Fixing debug mode errors (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/502)
- FIX: #494 Param "verify" always true (Daniel Kozak ) (https://github.com/php-amqp/php-amqp/issues/497)
- Remove assert on undefined variable (Remi Collet ) (https://github.com/php-amqp/php-amqp/issues/486)
- Semantically sort changelog (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/e5bd909)
- Set custom PHP executable dynamically (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/503)
- Fixes in stub comments (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/6539de5)
- Refactor test skipping (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/504)
- Bump actions/checkout from 4.0.0 to 4.1.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/499)
- Bump phpstan/phpdoc-parser from 1.23.1 to 1.24.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/491)
- Bump phpstan/phpdoc-parser from 1.24.0 to 1.24.1 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/495)
- Bump shivammathur/setup-php from 2.25.5 to 2.26.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/493)
- Bump slevomat/coding-standard from 8.13.4 to 8.14.1 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/501)
- Bump symplify/easy-coding-standard from 12.0.7 to 12.0.8 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/492)

For a complete list of changes see:
https://github.com/php-amqp/php-amqp/compare/v2.1.0...v2.1.1
2.1.0 - AMQPValue interface for custom value objects (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/473)
- Implement AMQPQueue::recover() to provide the basic.recover method (fixes #478) (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/484)
- Fix double free when an error occurs in AMQPQueue::consume() (Jan Prachar ) (https://github.com/php-amqp/php-amqp/issues/482)
- Revamp error handling (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/485)
- Refactor AMQPQueue::consume error handling (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/483)
- Use RETURN_THROWS for parameter parsing errors (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/474)
- Fix auto-formatting (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/877b2f4)
- Remove appveyor badge (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/4971c80)
- Replace microtime() as a randomness source (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/4503e53)
- Fix version test for release builds (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/00a6715)
- Remove non-ASCII characters from package.xml to work around pecl.php.net issue (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/732f7e8)
- Bump actions/checkout from 3.5.3 to 3.6.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/475)
- Bump symplify/easy-coding-standard from 12.0.6 to 12.0.7 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/472)
- Bump actions/checkout from 3.5.3 to 3.6.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/471)
- Bump actions/checkout from 3.6.0 to 4.0.0 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/481)

For a complete list of changes see:
https://github.com/php-amqp/php-amqp/compare/v2.0.0...v2.1.0
2.0.0 Notable changes:

- Fix various API oddities, see https://github.com/php-amqp/php-amqp/tree/v2.0.0/UPGRADING.md for details
- Remove support for PHP 5
- Various bug fixes

­čĺíMost use-cases should not require much changes from 1.x but check out
https://github.com/php-amqp/php-amqp/tree/v2.0.0/UPGRADING.md for a detailed upgrade guide


All changes (chronologically):

- CentOS development environment (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/467)
- Ubuntu development containers (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/466)
- Test against upcoming PHP 8.3 (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/465)
- Make test host configurable (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/464)
- Cosmetics on type functions (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/350202f)
- Configurable serialization/deserialization depth (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/463)
- Allow bitmask flags arguments to be nullable where previously AMQP_NOPARAM/zero was required (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/462)
- Fix generated commit URLs in changelogs (Lars Strojny ) (https://github.com/php-amqp/php-amqp/commit/4ee6159)
- Handle nested AMQP value serialization/deserialization (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/461)
- Document lack of reliability of AMQPConnection::isConnected (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/306)
- Prevent reuse of channel ID of broken channels (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/460)
- Gracefully handle zero as a heartbeat value (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/459)
- Build with the clang compiler on CI (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/457)
- Include stdint.h for PHP >= 8.0 on Windows (Jan Ehrhardt) (https://github.com/php-amqp/php-amqp/issues/456)
- Fix segfault in setPort (Remi Collet ) (https://github.com/php-amqp/php-amqp/issues/455)
- Document BC changes (Lars Strojny )
- Document pseudo-bool method changes (Lars Strojny )
- Fix mangled header on MacOS (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/60)
- Validate argument parsing, add AMQPExchange::removeArgument() and AMQPQueue::removeArgument() (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/452)
- Skip SSL tests if certificates are missing (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/450)
- Check coding style and formatting of stub files (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/447)
- Parallelize test execution (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/444)
- Deterministic configuration for PHP CLI (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/443)
- Fix tag creation during release management (Lars Strojny )
- Move test-report.sh into infra (Lars Strojny )
- The big fat API renovation (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/437)
- Handle alpha/beta stability correctly (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/5546436)
- Expose better version information (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/438)
- Auto-format the codebase (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/436)
- More consistent return types for AMQPEnvelope (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/435)
- Update stubs (Lars Strojny )
- Fix parameter error handling in AMQPConnection and AMQPChannel (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/434)
- Increase credentials and identifier limits (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/433)
- Reliably clear consumer tag on AMQPQueue::cancel (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/432)
- Ignore failures on experimental builds (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/25)
- Update branch name (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/7)
- Bump shivammathur/setup-php from 2.25.3 to 2.25.4 (dependabot[bot]) (https://github.com/php-amqp/php-amqp/issues/431)
- PHP 8.2 refactorings (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/430)
- Fix php version check for static building (Misha Kulakovsky ) (https://github.com/php-amqp/php-amqp/issues/425)
- Fix stub exception class (closes #427) (Lars Strojny )
- Document custom connection name in stubs (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/700000)
- Expose Delivery Mode through constants (Flávio Heleno ) (https://github.com/php-amqp/php-amqp/issues/420)
- Fix deprecation issue in PHP 8.1 for $consumerTag argument to AMQPQueue::consume() method (Liviu-Ionut Iosif) (https://github.com/php-amqp/php-amqp/issues/421)
- Fix: Deprecated: Creation of dynamic property (8.2) (Remi Collet ) (https://github.com/php-amqp/php-amqp/issues/418)
- Fix AMQPEnvelope::getDeliveryTag() return type (Flávio Heleno ) (https://github.com/php-amqp/php-amqp/issues/415)
- Fix ack/nack/reject param documentation (Flávio Heleno ) (https://github.com/php-amqp/php-amqp/issues/414)
- Mention time units in all timeout-related methods (Andrii Dembitskyi ) (https://github.com/php-amqp/php-amqp/issues/410)

For a complete list of changes see:
https://github.com/php-amqp/php-amqp/compare/v1.11.0...v2.0.0
2.0.0RC1 - Handle nested AMQP value serialization/deserialization (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/461)
- Document lack of reliability of AMQPConnection::isConnected (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/306)
- Prevent reuse of channel ID of broken channels (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/460)
- Gracefully handle zero as a heartbeat value (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/459)
- Build with the clang compiler on CI (Lars Strojny ) (https://github.com/php-amqp/php-amqp/issues/457)

For a complete list of changes see:
https://github.com/php-amqp/php-amqp/compare/v2.0.0beta2...v2.0.0RC1
Show complete changelog