2017 © Pedro Peláez
 

library TrafficCophp

PHP Client for Traffic Cop messsage queue.

image

nesQuick/TrafficCophp

PHP Client for Traffic Cop messsage queue.

  • Thursday, December 18, 2014
  • by nesQuick
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Official PHP client for TrafficCop

Build Status, (*1)

This is the official PHP client for TrafficCop. It provides a very simple client for basic usage but offers also very OO-Style usage. Just see examples for that., (*2)

Install

Installation should be done via composer., (*3)

{
    "require": {
        "nesQuick/TrafficCophp": "dev-master"
    }
}

Example

You should have a look into the examples folder. A simple usage example could look like this, (*4)

<?php

require __DIR__ . '/../vendor/.composer/autoload.php';

use TrafficCophp\Client;

$client = new Client('127.0.0.1', 3542);
$client->publish('channel_two', 'A little test message from php client example');

$client->subscribe('channel_one', 'channel_two', 'channel_three');

while (true) {
    $client->receive(function($channel, $message) {
        printf('Got message "%s" on %s', $message, $channel);
    });
}

ToDo's

  • write php doc
  • cleanup use statements
  • refactor channel collection

License

Licensed under the MIT license., (*5)

The Versions

18/12 2014

dev-master

9999999-dev

PHP Client for Traffic Cop messsage queue.

  Sources   Download

MIT

The Requires

  • trafficcophp/bytebuffer dev-master
  • php >=5.3.0

 

client mq traffic cop

07/04 2012

v0.2

0.2.0.0

PHP Client for Traffic Cop messsage queue.

  Sources   Download

MIT

The Requires

  • trafficcophp/bytebuffer dev-master

 

client mq traffic cop