messagebird/pushprom-php-client

A PHP client for Pushprom

1.0.2 2021-11-15 09:49 UTC

This package is auto-updated.

Last update: 2024-10-15 16:39:27 UTC


README

This is a PHP client for Pushprom. If you use Yii 2 you may want to have a look at the Yii 2 client.

Latest Stable Version License

Installing

You can install the Pushprom PHP client through Composer by running:

composer require messagebird/pushprom-php-client:1.0.0

Alternatively, add this to your composer.json:

"require": {
    "messagebird/pushprom-php-client": "1.0.0"
}

And then install by running:

composer update messagebird/pushprom-php-client

Usage

$con = new \pushprom\Connection('udp://127.0.0.1:9090');
$gauge = new \pushprom\Gauge($con,
    "fish_in_the_sea",
    "we eat fish and new fish is born",
    ["species" => "Thalassoma noronhanum"]);
$gauge->set(2000);

License

The PHP client for Pushprom is licensed under The BSD 2-Clause License. Copyright (c) 2016, MessageBird