PHPackages                             joesama/webhook - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. joesama/webhook

ActiveLibrary[HTTP &amp; Networking](/categories/http)

joesama/webhook
===============

Guzzle Base HTTP Request Wrapper

4.1(1w ago)19721MITPHPPHP ^8.3

Since May 3Pushed 1w ago2 watchersCompare

[ Source](https://github.com/joesama/webhook)[ Packagist](https://packagist.org/packages/joesama/webhook)[ RSS](/packages/joesama-webhook/feed)WikiDiscussions 4.x Synced today

READMEChangelog (2)Dependencies (12)Versions (11)Used By (0)

WebHook
=======

[](#webhook)

HTTP Request Wrapper

[![Webhook Installation Validation](https://github.com/joesama/webhook/workflows/Webhook%20Installation%20Validation/badge.svg)](https://github.com/joesama/webhook/workflows/Webhook%20Installation%20Validation/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e1422b0984af73604002b71d33cc3570e3d08f572bfae17ad0902aa5aa261063/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f6573616d612f776562686f6f6b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/joesama/webhook/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/106695245ab8fc0499d3aaf36a275c6af88424c102ac4fd471ce624e0fd6b2c3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f6573616d612f776562686f6f6b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/joesama/webhook/?branch=master)[![Build](https://camo.githubusercontent.com/791364538b683c9f9e43ea38fab53777892185e0ccbc9625a7ea638e10a414a5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f6573616d612f776562686f6f6b2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/joesama/webhook/badges/build.png?b=master)[![PHPStan](https://github.com/joesama/webhook/workflows/PHPStan/badge.svg)](https://github.com/joesama/webhook/workflows/PHPStan/badge.svg)

Installation
============

[](#installation)

Simple installation via composer :

```
composer require "joesama/webhook"
```

Usage/Examples
--------------

[](#usageexamples)

### Define connector

[](#define-connector)

If in need of pre-configured connector, a connector class can be created by extending `Joesama\Webhook\Connectors\AbstractConnector` class and implement `Joesama\Webhook\Connectors\ConnectorContract` interface.

```
    class ExamplesConnector extends AbstractConnector implements ConnectorContract
    {
        /**
         * Define configuration parameter to be attach to request.
         */
        public function webHookConfiguration(): array
        {
            return [];
        }

        /**
         * Define request content to be send.
         */
        public function webHookContent(): array
        {
            return [];
        }

        /**
         * Define request header to attach to request.
         */
        public function webHookHeader(): array
        {
            return [];
        }
    }

```

### Initiate Request

[](#initiate-request)

To initiate a request can be simply by calling `Joesama\Webhook\Web\Hook` class and called the `getResponse` method.

```
    $hook = new Hook();

    $hook->setRequestBody([]);

    $hook->getResponse('http://www.google.com', 'GET');

```

To use pre-configured connector, pass it as parameter to the `Hook` class

```
    $connector = new ExamplesConnector();

    $hook = new Hook($connector);

```

License
=======

[](#license)

joesama/webhook is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

55

↑

FairBetter than 97% of packages

Maintenance98

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 96.9% 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 ~248 days

Recently: every ~191 days

Total

10

Last Release

11d ago

Major Versions

1.x-dev → 2.x-dev2023-03-27

0.1.x-dev → 3.02023-10-27

3.1 → 4.02025-08-01

PHP version history (6 changes)1.0.0PHP ^7.2.5

2.x-devPHP ^8.0.2

0.1.x-devPHP ^7.1.3

3.0PHP ^8.1

4.0PHP ^8.2

4.1PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6141029?v=4)[AHMED JOHARI BIN JUMALI](/maintainers/joesama)[@joesama](https://github.com/joesama)

---

Top Contributors

[![joesama](https://avatars.githubusercontent.com/u/6141029?v=4)](https://github.com/joesama "joesama (31 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

guzzlehttplaravel-packagewebhook

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/joesama-webhook/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[lion/bundle

Lion-framework configuration and initialization package

122.3k4](/packages/lion-bundle)

PHPackages © 2026

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