2017 © Pedro Peláez
 

library publisher-cli

PublisherCli is the component that allows publish events or stats using a console command.

image

ofertix/publisher-cli

PublisherCli is the component that allows publish events or stats using a console command.

  • Sunday, July 8, 2012
  • by jordillonch
  • Repository
  • 7 Watchers
  • 4 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

What is "PublisherCli"?

PublisherCli is the component that allows publish events or stats using a console command., (*1)

You only need to get one file: publisher_cli.phar., (*2)

This file contains configuration and commands to change it., (*3)

Requirements

  • PHP 5.3.2 and up witch pcntl extension installed.
  • RabbitMQ or ZMQ.

Libraries and services used

  • PHP
    • Phar
    • Symfony Components:
      • ClassLoader
      • YAML
    • PhpAmqpLib
  • RabbitMQ/ZMQ+OpenPGM

Installation

The best way to install is to clone the repository and then configure as you need. See "Configuration" section., (*4)

After cloning you must install dependencies using "composer":, (*5)

php composer.phar update

Usage

Help: php publisher_cli.phar --help, (*6)

Publish stat: php publisher_cli.phar --name=[stat_name] --types=[type1,type2...] --values=[STDIN|value,STDIN|value...], (*7)

Publish event: php publisher_cli.phar --name=[event_name] --event, (*8)

Configure: get current configuration: php publisher_cli.phar config, (*9)

set configuration:
    php publisher_cli.phar config set [param1.subparam1.subsubparam1] [new_value]

Configuration

All configuration is done using a YAML file., (*10)

You only have to configure the publisher class and options., (*11)

See config file for more details., (*12)

Extra notes

Use of ZMQ is discontinued because a memory leak using ZMQ with OpenPGM PUB/SUB., (*13)

The Versions

08/07 2012

dev-master

9999999-dev https://github.com/ofertix/PublisherCli

PublisherCli is the component that allows publish events or stats using a console command.

  Sources   Download

MIT

The Requires

 

by Jordi Llonch
by Joan Valduvieco

log logging monitor monitoring publishercli