PHPackages                             y0zh/sumsub-client - 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. y0zh/sumsub-client

ActiveLibrary[API Development](/categories/api)

y0zh/sumsub-client
==================

API client for sumsub.com

v1.0.0(1y ago)08MITPHPPHP &gt;=7.1

Since Feb 18Pushed 1y agoCompare

[ Source](https://github.com/y0zh/sumsub-client)[ Packagist](https://packagist.org/packages/y0zh/sumsub-client)[ RSS](/packages/y0zh-sumsub-client/feed)WikiDiscussions master Synced yesterday

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

sumsub-client
=============

[](#sumsub-client)

[![PHP 7.1](https://camo.githubusercontent.com/89830e985e0a7f5f1ed58d412d81ee5bdccafb5dd5861eb9a6e63e44dde568b6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e312d677265656e2e737667)](https://camo.githubusercontent.com/89830e985e0a7f5f1ed58d412d81ee5bdccafb5dd5861eb9a6e63e44dde568b6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e312d677265656e2e737667)[![PHP 7.2](https://camo.githubusercontent.com/047bbe011ab372b4d00fc7ab0ed6f0d2a3db1ffda3a25de65f318dac100328ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d677265656e2e737667)](https://camo.githubusercontent.com/047bbe011ab372b4d00fc7ab0ed6f0d2a3db1ffda3a25de65f318dac100328ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d677265656e2e737667)[![PHP 7.3](https://camo.githubusercontent.com/ebdf47db6e91607cc8e1a8ea16f4a35122a068c1e3a23b9eb6c9932d602d28ff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332d677265656e2e737667)](https://camo.githubusercontent.com/ebdf47db6e91607cc8e1a8ea16f4a35122a068c1e3a23b9eb6c9932d602d28ff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332d677265656e2e737667)[![PHP 7.4](https://camo.githubusercontent.com/b210ffea32c265d0f07ade3bfc97b7c68f2a801193f6a17cd070dd76b87f1646/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e342d677265656e2e737667)](https://camo.githubusercontent.com/b210ffea32c265d0f07ade3bfc97b7c68f2a801193f6a17cd070dd76b87f1646/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e342d677265656e2e737667)[![PHP 8.0](https://camo.githubusercontent.com/88f6dc968896e54d607c5dcf1c638b25268d12576e91ba149afb56518ec04b50/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302d677265656e2e737667)](https://camo.githubusercontent.com/88f6dc968896e54d607c5dcf1c638b25268d12576e91ba149afb56518ec04b50/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302d677265656e2e737667)[![PHP 8.1](https://camo.githubusercontent.com/fce1492cd36b86256ad3768aca02bd7b73d7275452eb215fb3101ecf098825d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312d677265656e2e737667)](https://camo.githubusercontent.com/fce1492cd36b86256ad3768aca02bd7b73d7275452eb215fb3101ecf098825d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312d677265656e2e737667)

API client for sumsub.com

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

[](#installation)

```
composer require y0zh/sumsub-client
```

Client configuration
--------------------

[](#client-configuration)

Client works with any [PSR-18 compatible HTTP client](https://packagist.org/providers/psr/http-client-implementation) and require [PSR-17 HTTP factory](https://packagist.org/providers/psr/http-factory-implementation).

```
use alexeevdv\SumSub\Client;
use alexeevdv\SumSub\Request\RequestSigner;

$requestSigner = new RequestSigner('Your APP token', 'Your secret');

$client = new Client(
    $psr18HttpClient,
    $psr17HttpFactory,
    $requestSigner
);
```

Getting SDKs access token
-------------------------

[](#getting-sdks-access-token)

```
use alexeevdv\SumSub\Request\AccessTokenRequest;

$externalUserId = 'some-id';
$levelName = 'some-level';
$ttlInSeconds = 3600;
$response = $client->getAccessToken(new AccessTokenRequest($externalUserId, $levelName, $ttlInSeconds));
$accessToken = $response->getToken();
```

Getting share token
-------------------

[](#getting-share-token)

```
use alexeevdv\SumSub\Request\ShareTokenRequest;

$applicantId = 'some-id';
$clientId = 'some-id';
$ttlInSeconds = 3600;
$response = $client->getShareToken( new ShareTokenRequest( $applicantId, $clientId, $ttlInSeconds ) );
$shareToken = $response->getToken();
```

Getting applicant data by applicant id
--------------------------------------

[](#getting-applicant-data-by-applicant-id)

```
use alexeevdv\SumSub\Request\ApplicantDataRequest;

$applicantId = 'some-id';
$response = $client->getApplicantData(new ApplicantDataRequest($applicantId));
$applicantData = $response->asArray();
```

Getting applicant data by external user id
------------------------------------------

[](#getting-applicant-data-by-external-user-id)

```
use alexeevdv\SumSub\Request\ApplicantDataRequest;

$externalUserId = 'some-id';
$response = $client->getApplicantData(new ApplicantDataRequest(null, $externalUserId));
$applicantData = $response->asArray();
```

Resetting an applicant
----------------------

[](#resetting-an-applicant)

```
use alexeevdv\SumSub\Request\ResetApplicantRequest;

$applicantId = 'some-id';
$client->resetApplicant(new ResetApplicantRequest($applicantId));
```

Getting applicant status
------------------------

[](#getting-applicant-status)

```
use alexeevdv\SumSub\Request\ApplicantStatusRequest;

$applicantId = 'some-id';
$response = $client->getApplicantStatus(new ApplicantStatusRequest($applicantId));
$applicantStatus = $response->asArray();
```

Getting document images
-----------------------

[](#getting-document-images)

```
use alexeevdv\SumSub\Request\DocumentImageRequest;

$inspectionId = 'some-id';
$imageId = '123';
$response = $client->getDocumentImages(new DocumentImageRequest($inspectionId, $imageId));
$stream = $response->asStream();
$conentType = $response->getContentType();
```

Getting inspection checks
-------------------------

[](#getting-inspection-checks)

```
use alexeevdv\SumSub\Request\InspectionChecksRequest;

$inspectionId = 'some-id';
$response = $client->getInspectionChecks(new InspectionChecksRequest($inspectionId));
$checksData = $response->asArray();
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance40

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 54.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

Unknown

Total

1

Last Release

500d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47d42d87c39ad8431fbacc6bad957b521538bed2d8988f5607aa6dcbb20f552a?d=identicon)[y0zh](/maintainers/y0zh)

---

Top Contributors

[![alexeevdv](https://avatars.githubusercontent.com/u/597839?v=4)](https://github.com/alexeevdv "alexeevdv (24 commits)")[![y0zh](https://avatars.githubusercontent.com/u/3010622?v=4)](https://github.com/y0zh "y0zh (12 commits)")[![sspat](https://avatars.githubusercontent.com/u/5153242?v=4)](https://github.com/sspat "sspat (6 commits)")[![goffyara](https://avatars.githubusercontent.com/u/9437632?v=4)](https://github.com/goffyara "goffyara (2 commits)")

###  Code Quality

TestsCodeception

Code StyleECS

### Embed Badge

![Health badge](/badges/y0zh-sumsub-client/health.svg)

```
[![Health](https://phpackages.com/badges/y0zh-sumsub-client/health.svg)](https://phpackages.com/packages/y0zh-sumsub-client)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60216.0M85](/packages/mollie-mollie-api-php)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[drupal/core-recommended

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

6942.5M421](/packages/drupal-core-recommended)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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