PHPackages                             signalhub/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. signalhub/php-sdk

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

signalhub/php-sdk
=================

PHP SDK for sending messages to SignalHub.

v1.0.0(1mo ago)041↓78.6%MITPHPPHP &gt;=8.1CI passing

Since Jun 9Pushed 1mo agoCompare

[ Source](https://github.com/SignalHubb/php)[ Packagist](https://packagist.org/packages/signalhub/php-sdk)[ Docs](https://signalhub.pro)[ RSS](/packages/signalhub-php-sdk/feed)WikiDiscussions master Synced 1w ago

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

SignalHub PHP SDK
=================

[](#signalhub-php-sdk)

PHP client for sending application alerts and event notifications to [SignalHub](https://signalhub.pro).

Documentation: English | [Русский](docs/README.ru.md) | [Bahasa Indonesia](docs/README.id.md)

The SDK targets the SignalHub incoming source API:

```
POST https://signalhub.pro/api/source/{sourceToken}/messages

```

Requirements
------------

[](#requirements)

- PHP 8.1 or newer
- `ext-json`
- Outbound HTTPS access to `signalhub.pro`

The default transport uses PHP streams, so the package does not require Guzzle, Symfony, or any other HTTP client.

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

[](#installation)

Install through Composer after the package is published:

```
composer require signalhub/php-sdk
```

For local development before Packagist publication:

```
{
  "repositories": [
    {
      "type": "path",
      "url": "../signalhub-php-sdk"
    }
  ],
  "require": {
    "signalhub/php-sdk": "*"
  }
}
```

Then install it in your project:

```
composer update signalhub/php-sdk
```

Source Token
------------

[](#source-token)

Create a source in the SignalHub panel and choose the `PHP SDK` integration. Copy the generated source token and pass it to `SignalHub\Client`.

Do not commit source tokens to your repository. Store them in environment variables or a secret manager.

Quick Start
-----------

[](#quick-start)

```
