userator/tryagi

asterisk gateway interface (AGI) library

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/userator/tryagi

1.0.0 2019-07-23 16:26 UTC

This package is auto-updated.

Last update: 2025-12-26 05:28:49 UTC


README

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