messagebird / pushprom-php-client
A PHP client for Pushprom
Installs: 176 764
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 12
Forks: 5
Open Issues: 1
Requires
- php: ^7.3|^8.0
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpstan/phpstan: ^0.12.99
- phpunit/phpunit: ^9.5
- psalm/phar: ^4.10
This package is auto-updated.
Last update: 2024-11-15 16:49:53 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.
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