PHP code example of soap / laravel-ami

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

    

soap / laravel-ami example snippets


return [
    'connections' => [
        'default' => [
            'uri' => 'user:secret@host:port',
        ]
    ]
];

php artisan ami:cli "pjsip show aors"

bash
php artisan vendor:publish --tag="ami-config"