1. Go to this page and download the library: Download automa.net/eventbus library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
automa.net / eventbus example snippets
$config = [
'host' => INTEGRATION_EVENTBUS_AMQP_HOST,
'port' => INTEGRATION_EVENTBUS_AMQP_PORT,
'user' => INTEGRATION_EVENTBUS_AMQP_USER,
'password' => INTEGRATION_EVENTBUS_AMQP_PASSWORD,
'vhost' => INTEGRATION_EVENTBUS_AMQP_VHOST,
'options' => [],
'consumer' => [
'queue' => INTEGRATION_EVENTBUS_AMQP_CONSUMER_QUEUE,
'enable_heartbeat_sender' => false,
'prefetch_count' => 3,
'max_retries' => 3 // Default 3,
'parking_lot_queue_name' => null // When max retries are exceeded and parking_lot is not set up, the message will be dropped.
],
'publisher' => [
'project' => INTEGRATION_EVENTBUS_PROJECT_NAME,
'exchange' => INTEGRATION_EVENTBUS_AMQP_PUBLISHER_EXCHANGE,
'routing_key_prefix' => INTEGRATION_EVENTBUS_AMQP_PUBLISHER_ROUTING_KEY_PREFIX,
],
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.