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

ActiveLibrary[API Development](/categories/api)

joehoel/combell-php-sdk
=======================

Combell API SDK for PHP

1.0.7(3mo ago)140[1 PRs](https://github.com/Joehoel/combell-php-sdk/pulls)MITPHPPHP ^8.3CI passing

Since Oct 20Pushed 1w agoCompare

[ Source](https://github.com/Joehoel/combell-php-sdk)[ Packagist](https://packagist.org/packages/joehoel/combell-php-sdk)[ Docs](https://github.com/joehoel/combell-php-sdk)[ GitHub Sponsors](https://github.com/Joehoel)[ RSS](/packages/joehoel-combell-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (8)Versions (11)Used By (0)

Combell API SDK for PHP
=======================

[](#combell-api-sdk-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1189577a3bbc91bc9c7fcb37807b60fb6e1f1942dc5d321d0e6229344d09b90c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f65686f656c2f636f6d62656c6c2d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joehoel/combell-php-sdk)[![Tests](https://camo.githubusercontent.com/0496e32978936ed0498fb39fad094ef1d4f3e1be4ff0f876332ad1ca9845a6e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f65686f656c2f636f6d62656c6c2d7068702d73646b2f72756e2d74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/joehoel/combell-php-sdk/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/035fa0de4eca4ee5070d1e5f4c1748ab6a6451eba0e5a41d375e815c483a5b3c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f65686f656c2f636f6d62656c6c2d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joehoel/combell-php-sdk)

Unofficial PHP SDK for the Combell v2 API, built on Saloon v3. It handles HMAC authentication and exposes typed resources and DTOs for a clean developer experience.

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

[](#installation)

You can install the package via composer:

```
composer require joehoel/combell-php-sdk
```

Usage
-----

[](#usage)

Basic setup:

```
use Joehoel\Combell\Combell;

$sdk = new Combell($_ENV['COMBELL_API_KEY'], $_ENV['COMBELL_API_SECRET']);
```

List accounts (returns DTOs):

```
use Joehoel\Combell\Dto\Account;

$response = $sdk->accounts()->getAccounts();
/** @var Account[] $accounts */
$accounts = $response->dto();

foreach ($accounts as $account) {
    echo $account->identifier.PHP_EOL;
}
```

Get a single account:

```
use Joehoel\Combell\Dto\AccountDetail;

$response = $sdk->accounts()->getAccount(123);
/** @var AccountDetail $account */
$account = $response->dto();
```

List DNS records for a domain:

```
use Joehoel\Combell\Dto\DnsRecord;

$response = $sdk->dnsRecords()->getRecords('example.com');
/** @var DnsRecord[] $records */
$records = $response->dto();
```

Create a DNS record (send a request with JSON body):

```
use Joehoel\Combell\Requests\DnsRecords\CreateRecord;

// For JSON bodies, instantiate the request and merge the payload
$request = new CreateRecord('example.com');
$request->body()->merge([
    'type' => 'A',
    'name' => '@',
    'content' => '1.2.3.4',
    'ttl' => 3600,
]);

$response = $sdk->send($request);
// $response->status() === 201 on success
```

Notes:

- Responses map to DTOs when available via `$response->dto()`.
- Non-2xx responses throw exceptions by default (Saloon’s `AlwaysThrowOnErrors`).
- Authentication is automatic via HMAC — provide your API key and secret to `Combell`.

Testing
-------

[](#testing)

```
composer test
```

With coverage:

```
composer test-coverage
```

Format code:

```
composer format
```

Mocking in tests
----------------

[](#mocking-in-tests)

You can use a local `MockClient` to test your integration without hitting the network.

```
use Joehoel\Combell\Combell;
use Joehoel\Combell\Requests\Accounts\GetAccounts;
use Saloon\Http\Faking\MockClient;
use Saloon\Http\Faking\MockResponse;

$mock = new MockClient([
    GetAccounts::class => MockResponse::make('[]', 200),
]);

$sdk = Combell::fake($mock, 'key', 'secret');
$response = $sdk->accounts()->getAccounts();
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Pull requests are welcome. Please include tests for new or changed behavior and run:

```
composer format && composer test
```

Acknowledgements
----------------

[](#acknowledgements)

This SDK is inspired by and informed by the resources in . Thank you to the Combell team for building and maintaining such a solid platform and for sharing their work publicly.

Security
--------

[](#security)

If you discover a security vulnerability, please email the maintainer at `joel@kuijper.fyi` rather than opening a public issue.

Credits
-------

[](#credits)

- [Joël Kuijper](https://github.com/Joehoel)
- [All Contributors](https://github.com/joehoel/combell-php-sdk/graphs/contributors)

License
-------

[](#license)

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

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance90

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.3% 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 ~21 days

Recently: every ~36 days

Total

8

Last Release

109d ago

PHP version history (2 changes)1.0.0PHP ^8.2

1.0.7PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31251240?v=4)[Joël Kuijper](/maintainers/Joehoel)[@Joehoel](https://github.com/Joehoel)

---

Top Contributors

[![Joehoel](https://avatars.githubusercontent.com/u/31251240?v=4)](https://github.com/Joehoel "Joehoel (62 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (8 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (5 commits)")[![autofix-ci[bot]](https://avatars.githubusercontent.com/in/243519?v=4)](https://github.com/autofix-ci[bot] "autofix-ci[bot] (1 commits)")

---

Tags

combellphpsaloonJoehoelcombell-php-sdk

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/joehoel-combell-php-sdk/health.svg)

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

###  Alternatives

[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

807.1M201](/packages/saloonphp-laravel-plugin)[myoutdeskllc/salesforce-php

salesforce library for php8+

1579.5k](/packages/myoutdeskllc-salesforce-php)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1123.7k](/packages/codebar-ag-laravel-docuware)[codebar-ag/laravel-zammad

Zammad integration with Laravel

107.1k](/packages/codebar-ag-laravel-zammad)

PHPackages © 2026

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