Download the PHP package hamkaran/pami without Composer
On this page you can find all versions of the php package hamkaran/pami. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hamkaran/pami
More information about hamkaran/pami
Files in hamkaran/pami
Informations about the package pami
PAMI
PAMI (PHP Asterisk Manager Interface) is an event-driven, object-oriented PHP client for the Asterisk Manager Interface (AMI). It can send AMI actions and consume AMI events, making it a useful foundation for operator consoles, monitoring tools, and real-time telephony applications.
About this continuation
This repository is a maintained, modernized continuation of the original PAMI project by Marcelo Gornstein. The original project's authorship and Apache-2.0 license remain fully credited. This version is maintained by Hamkaran Cloud Telephony.
The maintained source repository is github.com/amir200xven/PAMI.
What's new
- CDR events: PAMI can now represent Asterisk Call Detail Record events
through
PAMI\Message\Event\CdrEvent. - PHP 8.4+: version 3 is designed for PHP 8.4 and newer releases; the library, dependencies, test suite, and development tooling have been modernized accordingly.
- Modern PSR-3 support: applications can use
psr/log1.x, 2.x, or 3.x.
Requirements
- PHP 8.4 or later
- Composer
- Access to an Asterisk server with an enabled AMI account
Installation
Install PAMI with Composer:
Quick start
AMI must be configured to emit CDR events for the listener above to receive them. Keep credentials outside source control and use the network security controls appropriate for your deployment.
Event listeners
Listeners may be closures, object-method callables, or implementations of
PAMI\Listener\IEventListener. An optional predicate lets an application
filter events before its listener is called:
Events that do not yet have a dedicated implementation are exposed as
UnknownEvent, so applications can still observe them.
Development
Install development dependencies and run the project checks:
Documentation and related projects
License
PAMI is released under the Apache License 2.0. See LICENSE for the full license text.