PHPackages                             bangkeut-technology/supportdock-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bangkeut-technology/supportdock-sdk

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

bangkeut-technology/supportdock-sdk
===================================

SupportDock PHP SDK — submit feedback and manage FAQs from your PHP application

0.5.0(1w ago)01.5k↑90.3%MITPHPPHP &gt;=8.1CI passing

Since Apr 3Pushed 2w agoCompare

[ Source](https://github.com/bangkeut-technology/supportdock-sdk)[ Packagist](https://packagist.org/packages/bangkeut-technology/supportdock-sdk)[ RSS](/packages/bangkeut-technology-supportdock-sdk/feed)WikiDiscussions main Synced today

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

SupportDock PHP SDK
===================

[](#supportdock-php-sdk)

Submit feedback and manage FAQs from your PHP application.

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

[](#requirements)

- PHP 8.1+
- cURL extension

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

[](#installation)

```
composer require bangkeut-technology/supportdock-sdk
```

Usage
-----

[](#usage)

### Initialize the client

[](#initialize-the-client)

```
use SupportDock\SupportDockClient;

$client = new SupportDockClient([
    'apiKey' => 'sdk_your_api_key',
    // 'baseUrl' => 'https://supportdock.io',  // optional
    // 'timeout' => 10,                         // seconds, optional
    // 'defaultMetadata' => ['appVersion' => '1.0.0'],  // optional
]);
```

### Send feedback

[](#send-feedback)

```
$result = $client->sendFeedback([
    'type' => 'bug',           // 'bug' | 'feature' | 'question' | 'general'
    'message' => 'App crashes on login page',
    'email' => 'user@example.com',  // optional
    'name' => 'Jane Doe',           // optional
    'subject' => 'Login crash',     // optional, auto-generated if omitted
    'metadata' => [                 // optional
        'appVersion' => '2.0.0',
        'platform' => 'web',
    ],
    'images' => [                   // optional — up to 3 base64 data URLs (PNG/JPEG/WebP/GIF, each ≤ 2 MB)
        'data:image/png;base64,iVBOR...',
    ],
    'attachments' => [              // optional — up to 3 PDFs (each ≤ 5 MB)
        ['name' => 'report.pdf', 'data' => 'data:application/pdf;base64,JVBERi0...'],
    ],
]);
// $result = ['success' => true]
```

#### Attaching images

[](#attaching-images)

```
// Read a local file and convert to base64 data URL
$imageData = file_get_contents('/path/to/screenshot.png');
$base64 = 'data:image/png;base64,' . base64_encode($imageData);

$client->sendFeedback([
    'type' => 'bug',
    'message' => 'UI is broken on this screen',
    'images' => [$base64],
]);
```

#### Attaching PDFs

[](#attaching-pdfs)

```
// Read a local PDF and convert to base64 data URL
$pdfData = file_get_contents('/path/to/report.pdf');
$base64 = 'data:application/pdf;base64,' . base64_encode($pdfData);

$client->sendFeedback([
    'type' => 'bug',
    'message' => 'Steps to reproduce are in the attached report',
    'attachments' => [['name' => 'report.pdf', 'data' => $base64]],
]);
```

### List FAQs

[](#list-faqs)

```
$faqs = $client->listFAQs();
// Returns array of FAQ objects
```

### Create a FAQ

[](#create-a-faq)

```
$faq = $client->createFAQ([
    'question' => 'How do I reset my password?',
    'answer' => 'Go to Settings > Account > Reset Password.',
    'sortOrder' => 1,  // optional
]);
```

### Update a FAQ

[](#update-a-faq)

```
$faq = $client->updateFAQ('faq-id-here', [
    'answer' => 'Updated answer text.',
]);
```

### Delete a FAQ

[](#delete-a-faq)

```
$result = $client->deleteFAQ('faq-id-here');
// $result = ['success' => true]
```

Error handling
--------------

[](#error-handling)

```
use SupportDock\Exception\SupportDockException;
use SupportDock\Exception\ValidationException;
use SupportDock\Exception\RateLimitException;

try {
    $client->sendFeedback(['message' => 'Bug report']);
} catch (RateLimitException $e) {
    // 429 — too many requests (5 per 15-minute window)
    echo "Rate limited: " . $e->getMessage();
} catch (ValidationException $e) {
    // Client-side validation failed
    echo "Invalid input: " . $e->getMessage();
} catch (SupportDockException $e) {
    // API error (401, 403, 404, etc.)
    echo "Error ({$e->getStatusCode()}): " . $e->getMessage();
}
```

API reference
-------------

[](#api-reference)

MethodDescription`sendFeedback(array $options)`Submit feedback (bug, feature, question, general) with optional images and PDF attachments`listFAQs()`List all FAQs for the app`createFAQ(array $options)`Create a new FAQ entry`updateFAQ(string $faqId, array $options)`Update an existing FAQ`deleteFAQ(string $faqId)`Delete a FAQ entryLicense
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance97

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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 ~19 days

Total

5

Last Release

13d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1325087?v=4)[Vandeth THO](/maintainers/vandetho)[@vandetho](https://github.com/vandetho)

---

Top Contributors

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

---

Tags

sdksupportfeedbackFAQsupportdock

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bangkeut-technology-supportdock-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/bangkeut-technology-supportdock-sdk/health.svg)](https://phpackages.com/packages/bangkeut-technology-supportdock-sdk)
```

###  Alternatives

[aws/aws-crt-php

AWS Common Runtime for PHP

423329.7M10](/packages/aws-aws-crt-php)[coldtrick/user_support

Offers different community master features to support your users

142.4k](/packages/coldtrick-user-support)

PHPackages © 2026

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