PHPackages                             hostedhooks/hostedhooks-php - 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. hostedhooks/hostedhooks-php

ActiveLibrary[API Development](/categories/api)

hostedhooks/hostedhooks-php
===========================

PHP package for HostedHooks API

1.0.0(3y ago)211MITPHPPHP ^8.0

Since Sep 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/HostedHooks/hostedhooks-php)[ Packagist](https://packagist.org/packages/hostedhooks/hostedhooks-php)[ RSS](/packages/hostedhooks-hostedhooks-php/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

HostedHooks PHP Package
=======================

[](#hostedhooks-php-package)

A PHP package for [HostedHooks](https://www.hostedhooks.com), a Webhooks as a Service Platform

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install the package.

```
composer require hostedhooks/hostedhooks-php
```

How it works
------------

[](#how-it-works)

### Initialization

[](#initialization)

Initialize the `HostedHooksClient` with your API key that is [found here](https://www.hostedhooks.com/settings/account)

```
use HostedHooks\HostedHooksClient;

$hostedHooksClient = new HostedHooksClient('your-api-key');
```

### Resources available

[](#resources-available)

- App
- Subscription
- Endpoint
- Webhook Event
- AppMessage
- SubscriptionMessage
- EndpointMessage

### App

[](#app)

```
use HostedHooks\Resources\App;

$app = new App($hostedHooksClient);

// get all apps in your HostedHooks account
$app->list();

// create a new app in your HostedHooks account
$app->store(['name' => 'Awesome App']);

//update details of an existing app
$app->update($appId, ['name' => 'Updated awesome app name']);
```

Read more about App resource [here](https://developers.hostedhooks.com/#apps)

### Subscription

[](#subscription)

```
use HostedHooks\Resources\Subscription;

$subscription = new Subscription($hostedHooksClient);

// get all subscriptions for a given app
$subscription->list($appId);

// create a new subscription for a given app
$subscription->store($appId, $payload);

//get details for a single subscription
$subscription->show($subscriptionId);
```

Read more about Subscription resource [here](https://developers.hostedhooks.com/#subscriptions)

### Endpoint

[](#endpoint)

```
use HostedHooks\Resources\Endpoint;

$endpoint = new Endpoint($hostedHooksClient);

//get all endpoints for a given app
$endpoint->list($appId);

//get detail of a single endpoint for a given app
$endpoint->show($appId, $endpointId);

//create new endpoint for a given subscription providing array payload
$endpoint->store($subscriptionId, $payload);

//update an endpoint for a given subscription
$endpoint->update($subscriptionId, $endpointId, $payload);
```

Read more about Endpoint resource [here](https://developers.hostedhooks.com/#endpoints)

### WebhookEvent

[](#webhookevent)

```
use HostedHooks\Resources\WebhookEvent;

$webhookEvent = new WebhookEvent($hostedHooksClient);

//list all webhook events for a given app
$webhookEvent->list($appId);
```

Read more about WebhookEvent resource [here](https://developers.hostedhooks.com/#webhook-events)

### AppMessage

[](#appmessage)

```
use HostedHooks\Resources\AppMessage;

$appMessage = new AppMessage($hostedHooksClient);

//create a new message for the given app
$appMessage->store($appId, $payload);
```

### SubscriptionMessage

[](#subscriptionmessage)

```
use HostedHooks\Resources\SubscriptionMessage;

$subscriptionMessage = new SubscriptionMessage($hostedHooksClient);

//create a new message for the given subscription
$subscriptionMessage->store($subscriptionId, $payload);
```

### EndpointMessage

[](#endpointmessage)

```
use HostedHooks\Resources\EndpointMessage;

$endpointMessage = new EndpointMessage($hostedHooksClient);

//create a new message for the given endpoint
$endpointMessage->store($endpointId, $payload);
```

Read more about Message resources [here](https://developers.hostedhooks.com/#messages)

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

This package is available as open source under the terms of the MIT License.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~13 days

Total

2

Last Release

1385d ago

Major Versions

0.0.1 → 1.0.02022-09-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a15f8e6831dc4efc7aa4d6be8828ec264cb73b24577349fafe4a319928e734e?d=identicon)[awebartisan](/maintainers/awebartisan)

---

Top Contributors

[![awebartisan](https://avatars.githubusercontent.com/u/29105478?v=4)](https://github.com/awebartisan "awebartisan (7 commits)")[![igrabes](https://avatars.githubusercontent.com/u/436003?v=4)](https://github.com/igrabes "igrabes (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hostedhooks-hostedhooks-php/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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