ReactPHP

Use the Kafkorama ReactPHP SDK to integrate real-time Streaming APIs into event-driven PHP applications.

The Kafkorama ReactPHP SDK brings real-time communication capabilities to asynchronous PHP applications using the ReactPHP event loop.

In Kafkorama, subjects serve directly as Streaming API endpoints. This SDK allows your PHP backend services to publish and subscribe to those endpoints with minimal latency and full event-driven behavior.

With this SDK, you can:

  • Connect to a Kafkorama Gateway cluster using non-blocking I/O
  • Subscribe to Streaming API endpoints (subjects) and receive real-time messages
  • Publish real-time updates to subjects from PHP
  • Handle connection lifecycle and error events asynchronously
  • Integrate Kafkorama into microservices, APIs, or notification systems built with ReactPHP

This SDK is ideal for real-time backends that require scalable and non-blocking messaging in PHP environments.

To get started, follow the Run with Docker guide to launch a local Kafkorama instance. Below, you’ll find installation instructions, usage examples, and SDK references:

© 2025 MigratoryData. All rights reserved.