2017 © Pedro Peláez
 

library phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

image

ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  • Thursday, October 5, 2017
  • by ofbeaton
  • Repository
  • 3 Watchers
  • 4 Stars
  • 1,938 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 15 Versions
  • 17 % Grown

The README.md

phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills., (*1)

This is a fork and update of the AMI portion of the now defunc PHPAGI PHP 4.4 project which has not been updated since 2010., (*2)

We have kept the simplicity of a single class with command methods, adding a packagist entry and namespaces. This is a breaking change as class and method names have changed to follow modern standards, however they are a 1:1 mapping so updating your code should be straight forward., (*3)

Alternatives

If you are dealing with only Asterisk v13+ servers, consider using PAMI instead, which uses modern design paterns with observer-listener pattern. It no longer supports legacy Asterisk versions like v1.4 however. It may also see less development than the NAMI library for NodeJS., (*4)

Updates

The project is considered in a usable state and feature complete., (*5)

This project is used in corporate applications. As such, the authors are unlikely to update it on a regular basis, but instead when the corporate applications that use it run into problems. You should expect updates in the 5-10yr range., (*6)

Issues and PRs will be monitored, and we will continue to work with the community to provide updates as they are contributed., (*7)

Installing via Composer

The recommended way to install PHPAMI is through Composer., (*8)

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version:, (*9)

composer.phar require ofbeaton/phpami

After installing, you can now use it in your code:, (*10)

   $ami = new \PHPAMI\Ami();
   if ($ami->connect('localhost:5038', 'myuser', 'mysecret', 'off') === false) {
      throw new \RuntimeException('Could not connect to Asterisk Management Interface.');
   }

   // // if you have a looping of command function
   // // set allowTimeout flag to true
   // $ami->allowTimeout();

   // $result contains the output from the command
   $result = $ami->command('core show channels');

   $ami->disconnect();

License

This software is distributed under the LGPL 2.1 License. Please see License file for more information., (*11)

This library is a fork of the now defunc PHPAGI project by Matthew Asham. See Fork release for more details., (*12)

The Versions

05/10 2017

dev-master

9999999-dev https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php >=5.4.0

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

06/09 2017

1.0.3

1.0.3.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php >=5.4.0

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

01/09 2017

1.0.2

1.0.2.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php >=5.4.0

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

13/07 2017

1.0.1

1.0.1.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php >=5.4.0

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

12/12 2016

0.7.0

0.7.0.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php >=5.4.0

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

12/12 2016

1.0.0

1.0.0.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php >=5.4.0

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

10/08 2016

0.6.3

0.6.3.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php >=5.4.0

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

10/08 2016

0.6.2

0.6.2.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php >=5.4.0

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

10/08 2016

0.6.1

0.6.1.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php >=5.4.0

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

08/07 2016

0.6.0

0.6.0.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php ^5.4

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

27/07 2015

0.5.0

0.5.0.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php ^5.4

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

26/07 2015

0.4.0

0.4.0.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php ^5.4

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

26/07 2015

0.3.0

0.3.0.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php ^5.4

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

26/07 2015

0.2.1

0.2.1.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php ^5.4

 

The Development Requires

asterisk ami pami astx phpami phpagi pagi

25/07 2015

0.2

0.2.0.0 https://github.com/ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

  Sources   Download

LGPL 2.1

The Requires

  • php ^5.4

 

The Development Requires

asterisk ami astx