Download the PHP package radiusone/phpagi without Composer

On this page you can find all versions of the php package radiusone/phpagi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpagi

PhpAgi Readme

Welcome to PhpAgi.

PhpAgi is a set of PHP classes for use in developing applications with the Asterisk Gateway Interface and Asterisk Manager Interface, and is licensed under the GNU Lesser General Public License (see COPYING for terms).

Compatibility

This release (version 3) of the PhpAgi classes is a significant overhaul from the old versions. Classes have been namespaced and renamed. Class properties are now strictly typed, as are method parameters and returns. Many new methods have been added, and old ones may have been renamed or had their signatures and behaviour changed from the previous version.

A possibly-not-exhaustive list of backwards-incompatible changes includes:

AGI::evaluate(string $command, ...$args)
The value of the code element of the return array will now always be an integer; the values of all other elements will always be strings. This is a private method, but its return is used for all AGI command methods.
Not a breaking change, but previously this method only accepted one string parameter. Now, if multiple parameters are provided, the first is treated as a printf() format specification, and remaining ones are passed into the string. When using this mode, any string values are wrapped in double quotes.
AGI::exec(string $application, array $args)
Previously, $args could be a string or an array. Now, only an array can be passed.
AMI::Atxfer(string $Channel, string $Exten, string $Context, string $ActionID = null)
The $Priority parameter is not supported by Asterisk and has been removed.
AMI::Getvar(string $Variable, string $Channel = null, string $ActionID = null)
AMI::Setvar(string $Variable, string $Value, string $Channel = null, string $ActionID = null)
The $Variable and $Channel parameters have swapped places, as the channel is now optional. If ommitted, a global variable will instead be returned or set.
AMI::Originate(string $Channel, string $Exten = null, string $Context = null, string $Priority = null, string $Application = null, string $Data = null, $Timeout = 0, string $Variable = null, string $Account = null, bool $Async = false, string $ActionID = null, bool $EarlyMedia = false, string $Codecs = null, string $ChannelId = null, string $OtherChannelId = null, string $CallerID = null)
AMI::ParkedCalls(string $ParkingLot = null, string $ActionID = null)
AMI::QueueStatus(string $Queue = null, string $Member = null, string $ActionID = null)
AMI::Status(string $Channel = null, string $Variables = null, bool $AllVariables = false, string $ActionID = null)
One ore more additional parameters were added to match updates to the AMI commands. For consistency with other methods, the new parameters were inserted, keeping $ActionID as the last parameter.
AMI::Redirect(string $Channel, string $Exten, string $Context, string $Priority, string $ExtraChannel = null, string $ExtraExten = null, string $ExtraContext = null, string $ExtraPriority = null, string $ActionID = null)
The parameters of this method have been extensively changed to reflect that the $ExtraChannel parameter is optional, and to allow the setting of other optional $Extra* values.

Installation

The preferred way to install this extension is through composer.

Files

Docs

SUPPORT

Support for phpagi is available from the project website.


All versions of phpagi with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
symfony/polyfill-php80 Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package radiusone/phpagi contains the following files

Loading the files please wait ....