PHPackages                             siewwp/laravel-service-consumer - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. siewwp/laravel-service-consumer

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

siewwp/laravel-service-consumer
===============================

laravel server-to-server service consumer with HMAC authentication

v1.1.1(7y ago)0340MITPHP

Since Jun 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/siewwp/laravel-service-consumer)[ Packagist](https://packagist.org/packages/siewwp/laravel-service-consumer)[ RSS](/packages/siewwp-laravel-service-consumer/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (6)Used By (0)

Laravel hmac http
=================

[](#laravel-hmac-http)

Server-to-server service consuming with hmac authentication.

Installation
------------

[](#installation)

```
composer require siewwp/laravel-service-consumer:dev-master

```

Usage
-----

[](#usage)

### Binding your key

[](#binding-your-key)

Your should bind your app id and secret at your `ServiceProvider`.

Refer to [Hmac http client](https://github.com/siewwp/php-hmac-http) for more information.

Refer to [Laravel Container](https://laravel.com/docs/5.6/container) for more information.

### Handling webhook notification

[](#handling-webhook-notification)

If the service host is notifying event using webhook, you may define your webhook handler in your controller and extend to the webhook controller like so:

```
