PHPackages                             bootdesk/chat-sdk-adapter-github - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bootdesk/chat-sdk-adapter-github

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bootdesk/chat-sdk-adapter-github
================================

GitHub adapter for bootdesk/chat-sdk-core

0.4.44(2w ago)012MITPHPPHP &gt;=8.2

Since Jun 4Pushed 1w agoCompare

[ Source](https://github.com/bootdesk/chat-sdk-adapter-github)[ Packagist](https://packagist.org/packages/bootdesk/chat-sdk-adapter-github)[ RSS](/packages/bootdesk-chat-sdk-adapter-github/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (16)Versions (38)Used By (0)

bootdesk/chat-sdk-adapter-github
================================

[](#bootdeskchat-sdk-adapter-github)

GitHub adapter for the laravel-bootdesk multi-platform messaging framework.

Install
-------

[](#install)

```
composer require bootdesk/chat-sdk-adapter-github
```

Requires a PSR-18 HTTP client (`guzzlehttp/guzzle`, `symfony/http-client`, etc.) and a PSR-17 factory (`nyholm/psr7` bundled).

Configuration
-------------

[](#configuration)

VariableDescriptionExample`auth_token`GitHub token (PAT for PAT mode, optional for App mode)`ghp_abc123...``http_client`PSR-18 HTTP client instance`new GuzzleHttp\Client``webhook_secret`Webhook Secret`my-secret...``app_id`GitHub App ID (App mode)`123456``installation_id`Fixed installation ID (single-tenant App mode)`654321``private_key`App private key PEM (base64-encoded, App mode)`LS0tLS1CRUdJTiBSU0EgUFJJVkFURS...`### PAT mode

[](#pat-mode)

```
$adapter = new GitHubAdapter(
    httpClient: new \GuzzleHttp\Client,
    webhookSecret: env('GITHUB_WEBHOOK_SECRET'),
    authToken: env('GITHUB_AUTH_TOKEN'),
);
```

### Single-tenant App mode

[](#single-tenant-app-mode)

```
$adapter = new GitHubAdapter(
    httpClient: new \GuzzleHttp\Client,
    webhookSecret: env('GITHUB_WEBHOOK_SECRET'),
    authToken: env('GITHUB_AUTH_TOKEN'), // optional fallback
    appId: env('GITHUB_APP_ID'),
    installationId: env('GITHUB_INSTALLATION_ID'),
    privateKey: env('GITHUB_PRIVATE_KEY'),
);
```

### Multi-tenant App mode

[](#multi-tenant-app-mode)

```
$adapter = new GitHubAdapter(
    httpClient: new \GuzzleHttp\Client,
    webhookSecret: env('GITHUB_WEBHOOK_SECRET'),
    authToken: env('GITHUB_AUTH_TOKEN'), // optional fallback
    appId: env('GITHUB_APP_ID'),
    privateKey: env('GITHUB_PRIVATE_KEY'),
);
```

### Laravel

[](#laravel)

The `ChatServiceProvider` auto-binds `Psr\Http\Client\ClientInterface` to `GuzzleHttp\Client`. Add to `config/chat.php`:

```
'github' => [
    'auth_token'     => env('GITHUB_AUTH_TOKEN'),
    'webhook_secret' => env('GITHUB_WEBHOOK_SECRET'),
],
```

Quick Example
-------------

[](#quick-example)

```
// Post a comment on a pull request
$adapter->postMessage('github:owner/repo:42', 'LGTM!');

// Post a comment on an issue
$adapter->postMessage('github:owner/repo:issue:15', 'Thanks for reporting.');

// Reply to a review comment thread
$adapter->postMessage('github:owner/repo:42:rc:9876543', 'Fixed in abc123.');
```

Thread ID Format
----------------

[](#thread-id-format)

FormatDescription`github:{owner}/{repo}:{number}`Pull request or issue`github:{owner}/{repo}:issue:{number}`Explicit issue`github:{owner}/{repo}:{prNumber}:rc:{reviewCommentId}`Review comment threadWebhook
-------

[](#webhook)

GitHub sends webhook events to your endpoint. Verify requests using HMAC-SHA256 verification via the `x-hub-signature-256` header.

**Handled events:** `issue_comment`, `pull_request_review_comment`

Feature Matrix
--------------

[](#feature-matrix)

FeatureSupportedPost messages✓Edit messages✓Delete messages✓Reactions✓Slash commands✓Typing indicator✗Fetch messages✓Fetch thread info✓Fetch channel info✓Get user✓Open DM✗Stream✓Notes
-----

[](#notes)

Supports GitHub App or PAT authentication. Handles PR comments, issue comments, and review comments. Includes emoji-to-reaction mapping for reactions like thumbs up, thumbs down, laugh, etc.

Documentationn
--------------

[](#documentationn)

Full API documentation:

License
-------

[](#license)

MIT

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance97

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Every ~1 days

Total

37

Last Release

14d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3874705?v=4)[Vin](/maintainers/tryvin)[@tryvin](https://github.com/tryvin)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bootdesk-chat-sdk-adapter-github/health.svg)

```
[![Health](https://phpackages.com/badges/bootdesk-chat-sdk-adapter-github/health.svg)](https://phpackages.com/packages/bootdesk-chat-sdk-adapter-github)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k16](/packages/tempest-framework)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M425](/packages/drupal-core-recommended)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[shopware/app-php-sdk

Shopware App SDK for PHP

15109.8k3](/packages/shopware-app-php-sdk)

PHPackages © 2026

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