PHPackages                             rmoore/ami - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rmoore/ami

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rmoore/ami
==========

Provide asterisk ami to laravel

3.0.1(6y ago)035MITPHPPHP &gt;=5.6.0

Since Jul 4Pushed 6y agoCompare

[ Source](https://github.com/RMoorePHP/ami)[ Packagist](https://packagist.org/packages/rmoore/ami)[ Docs](https://github.com/Enniel/Ami)[ RSS](/packages/rmoore-ami/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (14)Versions (22)Used By (0)

[![Build Status](https://camo.githubusercontent.com/bfad2a86d4633b9656bd6ad2a5b82ed118c286129d4fddd6a936c77100ff62be/68747470733a2f2f7472617669732d63692e6f72672f656e6e69656c2f616d692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/enniel/ami)[![StyleCI](https://camo.githubusercontent.com/015c4e2dadf43cd279e25363b899b049c7f5cceb27f3aadd49f82e9501d35eb0/68747470733a2f2f7374796c6563692e696f2f7265706f732f36323535333634332f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/62553643)

Enniel\\Ami
===========

[](#ennielami)

Easy control via [asterisk](http://www.asterisk.org/) manager interface (AMI).

Installation and configuration
------------------------------

[](#installation-and-configuration)

To install as a [composer](https://getcomposer.org/) package to be used with Laravel 5, simply run:

```
composer require "enniel/ami"
```

Once it's installed, you can register the service provider in `config/app.php` in the `providers` array:

```
'providers' => [
  \Enniel\Ami\Providers\AmiServiceProvider::class,
]
```

Then publish assets with `php artisan vendor:publish`. This will add the file `config/ami.php`.

Usage
-----

[](#usage)

**Connection options**

You are can specify connection parameters for each command.

OptionDescription--hostAsterisk AMI server host--portAsterisk AMI server port--usernameAsterisk AMI server username--secretAsterisk AMI server secret**Listen ami events**

```
php artisan ami:listen
```

```
Artisan::call('ami:listen');
```

If would you like to see event log in the console use *monitor* option

```
php artisan ami:listen --monitor
```

**Send ami action**

```
php artisan ami:action  --arguments=: --arguments=: ...
```

```
Artisan::call('ami:action', [
    'action'      => ,
    '--arguments' => [
         =>
        ...
    ]
]);
```

**Send sms messages using chan dongle**

```
php artisan ami:dongle:sms
```

```
Artisan::call('ami:dongle:sms', [
    'phone'   => ,
    'message' => ,
    'device'  => ,
]);
```

For sending long messages use *pdu* mode.

```
php artisan ami:dongle:sms    --pdu
```

```
Artisan::call('ami:dongle:sms', [
    'phone'   => ,
    'message' => ,
    'device'  => ,
    '--pdu'   => true,
]);
```

Argument device is not required.

**Send ussd commands using chan dongle**

```
php artisan ami:dongle:ussd
```

```
Artisan::call('ami:dongle:ussd', [
    'device' => ,
    'ussd'   => ,
]);
```

**Send ami commands**

This command started cli interface for ami. Command attribute is optional.

```
php artisan ami:cli [command]
```

Close cli interface after sending command.

```
php artisan ami:cli [command] --autoclose
```

```
Artisan::call('ami:cli', [
    'command'     => [command],
    '--autoclose' => true,
]);
```

**Without Laravel**

```
php ./vendor/bin/ami ami:listen --host=127.0.0.1 --port=5038 --username=username --secret=secret --monitor
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~58 days

Recently: every ~237 days

Total

21

Last Release

2438d ago

Major Versions

0.0.5 → 1.0.02016-09-06

1.2.x-dev → 2.0.02017-01-31

2.1.0 → 3.0.02019-09-06

PHP version history (3 changes)0.0.1PHP ~5.5|~7.0

1.1.0PHP &gt;=5.5.9

1.1.1PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8243df9773b1b9e468455f666b7e0c079a94f022bec77666bb474ed265e6da33?d=identicon)[rs-sliske](/maintainers/rs-sliske)

---

Top Contributors

[![enniel](https://avatars.githubusercontent.com/u/19760944?v=4)](https://github.com/enniel "enniel (72 commits)")

---

Tags

asteriskamiEnniel

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/rmoore-ami/health.svg)

```
[![Health](https://phpackages.com/badges/rmoore-ami/health.svg)](https://phpackages.com/packages/rmoore-ami)
```

###  Alternatives

[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[igorsgm/laravel-git-hooks

🪝• Efficiently manage Git hooks in Laravel projects. Enhance code quality, save time on reviews, and prevent bugs from entering your repository.

2931.7k1](/packages/igorsgm-laravel-git-hooks)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
