PHPackages                             webhooker/webhooker-sdk - 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. webhooker/webhooker-sdk

ActiveLibrary

webhooker/webhooker-sdk
=======================

SDK for communicating with the WebHooker.io API

0.4.0(2y ago)01.9k1MITPHPPHP &gt;=5.5.0

Since Jan 20Pushed 2y ago4 watchersCompare

[ Source](https://github.com/WebHooker/webhooker-sdk-php)[ Packagist](https://packagist.org/packages/webhooker/webhooker-sdk)[ Docs](https://github.com/webhooker/webhooker-sdk-php)[ RSS](/packages/webhooker-webhooker-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (10)Used By (0)

WebHooker SDK for PHP
=====================

[](#webhooker-sdk-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b955b5aeca5a225c0558f0c16326db677d286a08c514717ed6c53b4dd3b343b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776562686f6f6b65722f776562686f6f6b65722d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webhooker/webhooker-sdk)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/71ab863db463274e50ab6104f1b1b308e64aaaf5e4f69a5f27b1d2b516f74c62/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f576562486f6f6b65722f776562686f6f6b65722d73646b2d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/WebHooker/webhooker-sdk-php)[![Total Downloads](https://camo.githubusercontent.com/926fc4f9c60d812d6b69420d54fe62b3eb92d4fed387242565f32aaebabc9069/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776562686f6f6b65722f776562686f6f6b65722d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webhooker/webhooker-sdk)

Interact with the WebHooker.io API

Install
-------

[](#install)

Via Composer

```
composer require webhooker/webhooker-sdk
```

You must also have Guzzle installed. By default, the package is only compatible with Guzzle 6:

```
composer require guzzlehttp/guzzle
```

Usage
-----

[](#usage)

Instantiate:

```
$webhooker = Webhooker\Webhooker::usingGuzzle('YOUR-API-KEY');
```

Add a subscriber:

```
$subscriber = $webhooker->addSubscriber('Their Name Here');

$subscriber->id;
```

Add an endpoint for the subscriber to receive messages:

```
// you can use "jsonSubscription" or "xmlSubscription"
$subscription = $webhooker->subscriber($id)->jsonSubscription($tenantKey, $deliveryUrl, $secret)->save();
$subscription = $webhooker->subscriber($id)->xmlSubscription($tenantKey, $deliveryUrl, $secret)->save();

// additional options for a subscription, e.g. Basic Auth, or "Legacy Payloads"
$subscription = $webhooker->subscriber($id)
  ->jsonSubscription($tenantKey, $deliveryUrl, $secret)
  ->basicAuth($username, $password)
  ->legacyPayload('p_reply')
  ->save();

$subscription->id;
```

Send a JSON message:

```
// $jsonData can be something JSON-able (array/object) or a pre-encoded JSON string
$webhooker->notify('account-1', 'something.happened')->json($jsonData)->send();
```

Or, because JSON is very common, just pass it directly to the `send()` method:

```
$webhooker->notify('account-1', 'something.happened')->send($jsonData);
```

Send an XML message:

```
// $xmlData must be an XML string
$webhooker->notify('account-1', 'something.happened')->xml($xmlData)->send();
```

Send both XML and JSON messages:

```
$webhooker->notify('account-1', 'something.happened')->xml($xmlData)->json($jsonData)->send();
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.1% 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 ~597 days

Recently: every ~745 days

Total

6

Last Release

782d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.4.0

0.2.0PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b8b013c8573ed37a04664d3494beb856ff90d3423a2e4ece5b99545696e4a0ce?d=identicon)[iWader](/maintainers/iWader)

![](https://www.gravatar.com/avatar/07cec9ce807e2c5175aca355a95f3a1d8244c898ee1fc62271b9163caebc2e91?d=identicon)[rknightuk](/maintainers/rknightuk)

![](https://www.gravatar.com/avatar/5e9e07f306735412e8567e5069420ae515f12ca15daef2bb81d5fb42e6b9450f?d=identicon)[SteveRad](/maintainers/SteveRad)

---

Top Contributors

[![danharper](https://avatars.githubusercontent.com/u/510740?v=4)](https://github.com/danharper "danharper (25 commits)")[![rknightuk](https://avatars.githubusercontent.com/u/948436?v=4)](https://github.com/rknightuk "rknightuk (12 commits)")[![iWader](https://avatars.githubusercontent.com/u/2007548?v=4)](https://github.com/iWader "iWader (8 commits)")[![LukeAustin8](https://avatars.githubusercontent.com/u/29544390?v=4)](https://github.com/LukeAustin8 "LukeAustin8 (2 commits)")[![rmlewisuk](https://avatars.githubusercontent.com/u/54752684?v=4)](https://github.com/rmlewisuk "rmlewisuk (1 commits)")

---

Tags

webhookswebhookerwebhooker-sdk

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/webhooker-webhooker-sdk/health.svg)

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

###  Alternatives

[svix/svix

Svix PHP Library

3.2k722.4k6](/packages/svix-svix)[aws/aws-php-sns-message-validator

Amazon SNS message validation for PHP

21421.5M91](/packages/aws-aws-php-sns-message-validator)[standard-webhooks/standard-webhooks

Standard Webhooks - Open source tools and guidelines for sending webhooks easily, securely, and reliably

1.6k43.0k6](/packages/standard-webhooks-standard-webhooks)[hotmeteor/receiver

A drop-in webhook handling library for Laravel

393137.3k](/packages/hotmeteor-receiver)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[renoki-co/laravel-aws-webhooks

Easy webhook handler for Laravel to catch AWS SNS notifications for various services.

73248.5k](/packages/renoki-co-laravel-aws-webhooks)

PHPackages © 2026

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