PHP code example of messagebird / pushprom-php-client

1. Go to this page and download the library: Download messagebird/pushprom-php-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

messagebird / pushprom-php-client example snippets


$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);
bash
composer 
bash
composer update messagebird/pushprom-php-client