PHPackages                             worksome/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. [API Development](/categories/api)
4. /
5. worksome/sdk

ActiveLibrary[API Development](/categories/api)

worksome/sdk
============

An object-oriented PHP wrapper for the Worksome API

v0.1.4(1y ago)0240.7k↓91.7%MITPHPPHP ^8.3CI passing

Since Nov 29Pushed 1w ago6 watchersCompare

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

READMEChangelog (5)Dependencies (16)Versions (8)Used By (0)

Worksome PHP SDK
================

[](#worksome-php-sdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/530ddf5fd98bb43beb21dc5e8cbea8f421822e7cb8ddcef16841e3e17cb46a76/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776f726b736f6d652f73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/worksome/sdk)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/11815690ed7c28ccc2379a8dfdd79acdb8da28ac5a2104e0d32fd25d6ee4e899/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f776f726b736f6d652f73646b2d7068702f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/worksome/sdk-php/actions)[![Static Analysis Status](https://camo.githubusercontent.com/a23df5f3f2e2a8c46a253332f7eb9494fa1a64c3c1f85eabf94d758a360444fe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f776f726b736f6d652f73646b2d7068702f7374617469632e796d6c3f6272616e63683d6d61696e266c6162656c3d737461746963253230616e616c79736973267374796c653d666c61742d737175617265)](https://github.com/worksome/sdk-php/actions?query=workflow%3AStatic%20Analysis)[![Total Downloads](https://camo.githubusercontent.com/2a51378d7142feb79ac7bd32b4f139a8bf68836520843eab22ce98a4b2986643/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776f726b736f6d652f73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/worksome/sdk)

An object-oriented PHP wrapper for the Worksome API

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

[](#requirements)

- PHP &gt;= 8.4
- A [PSR-17 implementation](https://packagist.org/providers/psr/http-factory-implementation)
- A [PSR-18 implementation](https://packagist.org/providers/psr/http-client-implementation)

Install
-------

[](#install)

Via Composer

```
composer require worksome/sdk guzzlehttp/guzzle:^7.5 http-interop/http-factory-guzzle:^1.2
```

We are decoupled from any HTTP messaging client with help by [HTTPlug](https://httplug.io).

Usage
-----

[](#usage)

#### Basic usage

[](#basic-usage)

```
// Include the Composer autoloader
require_once __DIR__ . '/vendor/autoload.php';

$client = new \Worksome\Sdk\Client();
$repositories = $client->graph()->execute();
```

#### Authentication

[](#authentication)

The Worksome SDK supports authenticating through an API token.

```
$client = new \Worksome\Sdk\Client();
$client->authenticate($apiToken);
```

#### Using a different base URI

[](#using-a-different-base-uri)

The Worksome SDK defaults to using the `https://api.worksome.com` URI, however if a custom URI is required, this can be passed to the constructor:

```
$client = new \Worksome\Sdk\Client(baseUri: 'https://api.local');
```

#### Using a different HTTP client

[](#using-a-different-http-client)

Thanks to [HTTPlug](https://httplug.io), we support the use of many HTTP clients. For example, to use the Symfony HTTP Client, first install the client and PSR-7 implementation.

```
composer require worksome/sdk symfony/http-client nyholm/psr7
```

Next, set up the Worksome client with this HTTP client:

```
$client = \Worksome\SDK\Client::createWithHttpClient(
    new \Symfony\Component\HttpClient\HttplugClient()
);
```

Alternatively, you can inject an HTTP client through the `Client` constructor.

Change log
----------

[](#change-log)

Please see [GitHub Releases](https://github.com/worksome/sdk-php/releases) for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

To update the test snapshots, set the `WORKSOME_LOCAL_API_URL` and `WORKSOME_LOCAL_API_TOKEN` environment variables, and then run `composer update:snapshots`.

Credits
-------

[](#credits)

- [Owen Voke](https://github.com/owenvoke)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance74

Regular maintenance activity

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87% 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 ~217 days

Total

5

Last Release

442d ago

PHP version history (3 changes)v0.1.0PHP ^8.1

v0.1.1PHP ^8.2

v0.1.2PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (47 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![lukeraymonddowning](https://avatars.githubusercontent.com/u/12202279?v=4)](https://github.com/lukeraymonddowning "lukeraymonddowning (1 commits)")

---

Tags

apiclientgraphqlphpworksomewrapper

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/worksome-sdk/health.svg)

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

###  Alternatives

[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)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k28.0M318](/packages/openai-php-client)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28150.5k](/packages/phpro-http-tools)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9067.8k](/packages/n1ebieski-ksef-php-client)[trycourier/courier

Courier PHP SDK

15660.9k](/packages/trycourier-courier)

PHPackages © 2026

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