PHP code example of gietos / phpagi

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

    

gietos / phpagi example snippets




= new \gietos\AGI\Handler();
$agi->handleRequest();
$agi->sayTime();

context incoming {
    _7XXXXXXXXXX => {
        AGI(/path/to/agi.php);
        Hangup();
    }
}