PHP code example of cinexpert / pubnub

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

    

cinexpert / pubnub example snippets


$config = new \Cinexpert\Tools\ToolsConfig();
$config
    ->setAwsRegion('eu-west-1')
    ->setAwsKey('...')
    ->setAwsSecret('...');

$tools = new \Cinexpert\Tools\Tools($config);

$queue = $tools->get('queue');

$queue->sendMessage('https://my-queue-url', 'message text');