PHP code example of misterion / ko-worker
1. Go to this page and download the library: Download misterion/ko-worker 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/ */
misterion / ko-worker example snippets
$m = new Ko\AmqpBroker($config);
$m->getProducer('upload_picture')->publish($message);
public function addFriendAction($name)
{
$msg = array('user_id' => 1235, 'friend_id' => '67890');
$this->broker->getProducer('social_activity')->publish(json_encode($msg));
}