PHP code example of rayansys / ami_listener
1. Go to this page and download the library: Download rayansys/ami_listener 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/ */
rayansys / ami_listener example snippets
use AMIListener\AMIListener;
"secret","127.0.0.1",5038);
$ami->addListener(function($parameter){
print_r($parameter);
});
$ami->start();
start.php start
start.php start -d
start.php status
start.php status -d
start.php connections
start.php stop
start.php stop -g
start.php restart
start.php reload
start.php reload -g