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

ActiveLibrary[API Development](/categories/api)

hook-sentinel/hook-sentinel-php-sdk
===================================

A simple SDK for interacting with my API.

1.0.0(1y ago)05MITPHPPHP &gt;=8.1

Since Oct 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hook-sentinel/php-sdk)[ Packagist](https://packagist.org/packages/hook-sentinel/hook-sentinel-php-sdk)[ RSS](/packages/hook-sentinel-hook-sentinel-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

HookSentinel PHP SDK
====================

[](#hooksentinel-php-sdk)

HookSentinel PHP SDK is a simple and intuitive library that helps you integrate with the HookSentinel API to manage endpoints and send events.

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

[](#installation)

Install the SDK via Composer:

```
composer require hook-sentinel/hook-sentinel-php-sdk
```

Usage
-----

[](#usage)

### Initialize the Client

[](#initialize-the-client)

Before making any requests, initialize the client with your API key and the base URL of your instance.

```
use HookSentinel\Client;

$apiKey = 'your-api-key';
$client = new Client($apiKey, 'https://your-instance-url');
```

### Create an Endpoint

[](#create-an-endpoint)

Create a new webhook endpoint by providing its details:

```
use HookSentinel\Objects\Endpoint;

$endpoint = new Endpoint();
$endpoint->name = 'Webhook Name';
$endpoint->endpointType = 'sent';
$endpoint->url = 'https://example.com/webhooks';
$endpoint->description = 'My Webhook';
$endpoint->method = 'POST';
$endpoint->response = 'response data';

$response = $client->endpoints->create($endpoint);
```

### Send an Event

[](#send-an-event)

Send an event to your webhook endpoint:

```
$client->events->endpointSignatureKey = "your-signature-key";
$client->events->endpointId = 'your-endpoint-id';

$client->events->send([
    'foo' => 'bar',
    'message' => 'This is a test event'
]);
```

### Retrieve Event Data

[](#retrieve-event-data)

Get the details of a received event by providing the secret key:

```
$secretKey = 'your-secret-key';
$eventData = $client->events->getEventData($secretKey);

print_r($eventData);
```

Handling Errors
---------------

[](#handling-errors)

The SDK throws exceptions for any errors. You can catch and handle them like this:

```
use Symfony\Component\HttpClient\Exception\ClientException;

try {
    $response = $client->endpoints->create($endpoint);
} catch (ClientException $exception) {
    echo $exception->getResponse()->getContent(false);
}
```

License
-------

[](#license)

This project is licensed under the MIT License.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

567d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c67163db3d6c06d38c005c827e8ffd46f77361daf44c082c3607d8c5d5a1aa3?d=identicon)[xusifob](/maintainers/xusifob)

---

Top Contributors

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

---

Tags

phpapisdkHookSentinel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hook-sentinel-hook-sentinel-php-sdk/health.svg)

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

###  Alternatives

[openai-php/symfony

Symfony Bundle for OpenAI

215715.5k3](/packages/openai-php-symfony)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)[google-gemini-php/symfony

Symfony Bundle for Gemini

149.4k1](/packages/google-gemini-php-symfony)[clever/clever-php

231.6k](/packages/clever-clever-php)

PHPackages © 2026

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