PHP code example of satori-com / satori-rtm-sdk-php

1. Go to this page and download the library: Download satori-com/satori-rtm-sdk-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/ */

    

satori-com / satori-rtm-sdk-php example snippets







bash
$ DEBUG_SATORI_SDK=true php <your_program.php>
bash
$ export DEBUG_SATORI_SDK=true
$ php <your_program.php>

$client = RtmClient::persistentConnection('wss://endpoint.satori.com', 'appkey1234', array(
    'connection_id' => 'connection1', // optional
));
$client->connect();

    $ export SSL_CA_FILE=/new/cert/dir/cert.pem
    $ export SSL_CA_PATH=/new/cert/dir/
    $ php your_app/index.php