PHPackages                             enniel/ami-hook - 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. [API Development](/categories/api)
4. /
5. enniel/ami-hook

AbandonedArchivedLibrary[API Development](/categories/api)

enniel/ami-hook
===============

Webhook API for Asterisk AMI

181PHP

Since Feb 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/enniel/ami-hook)[ Packagist](https://packagist.org/packages/enniel/ami-hook)[ RSS](/packages/enniel-ami-hook/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ami-hook
========

[](#ami-hook)

Webhook API for Asterisk AMI.

Install
-------

[](#install)

Via Composer

```
$ composer require enniel/ami-hook
```

Add the service provider to your `config/app.php`:

```
...
'providers' => [
    ...
    Enniel\AmiHook\AmiHookServiceProvider::class,
],
...
```

Publish and run the migration to create the `webhooks` table that will hold all installed webhooks.

```
php artisan vendor:publish --provider="Mpociot\CaptainHook\CaptainHookServiceProvider"

php artisan migrate
```

For more information about webhooks see [mpociot/captainhook](https://github.com/mpociot/captainhook).

Next, you should call the `AmiHook::routes` method within the boot method of your `RouteServiceProvider`. This method will register webhook routes:

```
