Download the PHP package tico/phpagi without Composer

On this page you can find all versions of the php package tico/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 — Modern PHP 8.x Asterisk Gateway Interface

PHP Version

A modern, fully-typed PHP library for building Asterisk AGI applications. This is a complete overhaul of the legacy phpagi library, rewritten for PHP 8.1+ with modern OOP practices, strict typing, and PSR-4 autoloading.


Installation

Quick Start

Architecture

Full Example

Changes from the Original (2.20)

Original (phpagi.php) Modern (Phpagi\AgiClient)
Global functions, no namespace PSR-4 namespaced under Phpagi\
var properties, no type hints Typed readonly DTOs, strict types everywhere
Returns raw arrays: ['code'=>500, 'result'=>-1] Throws AgiException on errors
Array access: $agi->request['agi_callerid'] Typed object: $agi->getRequest()->callerId
Global constants: AST_STATE_UP Backed enum: ChannelState::Up
parse_callerid() returns array CallerId::parse() returns typed value object
join(), substr(), strpos() match, str_contains, str_starts_with, str_ends_with
Error codes in return values Structured exception hierarchy
PHP 4 compatible syntax PHP 8.1+ features: enums, union types, named arguments, property promotion

PHP 8.x Features Used

Documentation

Legacy documentation for the original API is preserved in src/deprecated/ and docs/.

License

LGPL-2.1-or-later. See COPYING.


All versions of phpagi with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 tico/phpagi contains the following files

Loading the files please wait ...