PHP code example of pubq / pubq-php

1. Go to this page and download the library: Download pubq/pubq-php 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/ */

    

pubq / pubq-php example snippets




$rest = new Pubq\REST(["key" => "YOUR_API_KEY"]);

$channel = $rest->channels->get('my-channel');
$channel->publish('Hello!');
bash
$ composer 
bash
git clone [email protected]:pubqio/pubq-php.git
cd ./pubq-php/
composer install