PHP code example of orkhanahmadov / sipgate

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

    

orkhanahmadov / sipgate example snippets

 php
$sipgate = \Orkhanahmadov\Sipgate\Sipgate();
 php
$sipgate = \Orkhanahmadov\Sipgate\Sipgate('[email protected]', 'secret');
 php
$sipgate = \Orkhanahmadov\Sipgate\Sipgate();
$sipgate->setBasicAuthCredentials('[email protected]', 'secret');
 php
$sipgate->account();
 php
$sipgate->users();
 php
$sipgate->devices($user);
// or
$sipgate->devices('ABC-123');
 php
$sipgate->calls();
 php
$sipgate->call($device, $callee, $callerId);
 php
$sipgate->hangup('ABC-123');
 php
$sipgate->record($callId, $value, $announcement);