Skip to content
Asterisk gateway interface (AGI) library
PHP
Branch: master
Clone or download
Latest commit a9dd29c Jul 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src code and tests Jul 23, 2019
test fix test Jul 25, 2019
.gitignore first commit Jul 17, 2019
README.md code and tests Jul 23, 2019
composer.json fix tests and composer Jul 24, 2019
phpunit.xml code and tests Jul 23, 2019
psalm.xml code and tests Jul 23, 2019

README.md

TryAGI

Asterisk gateway interface (AGI) library

Installation

It's recommended that you use Composer to install TryAGI.

$ composer require userator/tryagi "~1.0.0"

This will install TryAGI and all required dependencies. TryAGI requires PHP 7.3.0 or newer.

Usage

Create an agi.php file with the following contents:

#!/usr/bin/php7.3 -q
<?php

require 'vendor/autoload.php';

$agi = new \TryAGI\Client(STDIN, STDOUT, new \Psr\Log\NullLogger());

$agi->init();

$result = $agi->send('VERBOSE "test verbose message"');

Tests

To execute the test suite, you'll need phpunit7.

$ phpunit7
You can’t perform that action at this time.