messagebird / pushprom-php-client
Pushprom 的 PHP 客户端
1.0.2
2021-11-15 09:49 UTC
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-09-15 16:31:38 UTC
README
这是一个用于 Pushprom 的 PHP 客户端。如果你使用 Yii 2,你可能想看看 Yii 2 客户端。
安装
你可以通过运行以下命令来安装 Pushprom PHP 客户端:
composer require messagebird/pushprom-php-client:1.0.0
或者,将以下内容添加到你的 composer.json
文件中
"require": { "messagebird/pushprom-php-client": "1.0.0" }
然后运行以下命令进行安装:
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);
许可证
Pushprom 的 PHP 客户端遵循 BSD 2-Clause 许可协议。版权所有 (c) 2016, MessageBird