This is a PHP client for Pushprom. If you use Yii 2 you may want to have a look at the Yii 2 client.
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
$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);
The PHP client for Pushprom is licensed under The BSD 2-Clause License. Copyright (c) 2016, MessageBird