You can use the PHP SDK to send and subscribe to messages over HTTP. This topic describes the methods for sending and subscribing to messages by using the PHP SDK and provides the links that point to related sample code.

Before performing any operations, see Release notes to learn how to use Message Queue for Apache RocketMQ (RocketMQ) SDKs of multiple languages over HTTP, and the features supported in each version.

See README to learn how to prepare the environment for the PHP SDK. For more information, see README.

Send and subscribe to messages

You can use the PHP SDK to send and subscribe to messages over HTTP. The following table lists the message types and the latest code links.

Message type Link
Normal messages
Scheduled messages
Transactional messages