PHPackages                             duffel/api - 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. duffel/api

AbandonedArchivedLibrary[API Development](/categories/api)

duffel/api
==========

Duffel API library for PHP

v0.2.0(3y ago)31835[1 issues](https://github.com/duffelhq/duffel-api-php/issues)[4 PRs](https://github.com/duffelhq/duffel-api-php/pulls)MITPHPPHP &gt;= 7.4

Since Apr 20Pushed 1y ago5 watchersCompare

[ Source](https://github.com/duffelhq/duffel-api-php)[ Packagist](https://packagist.org/packages/duffel/api)[ Docs](https://duffel.com)[ RSS](/packages/duffel-api/feed)WikiDiscussions main Synced 1mo ago

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

Warning

This client library is not currently being supported by Duffel due to a lack of adoption.

You're welcome to fork the repositories and continue maintaining them for your own use.

If, in the future, there's sufficient demand for a particular client library, we'll reconsider our decision to officially support it.

---

duffel/api
==========

[](#duffelapi)

A PHP library for the [Duffel API](https://duffel.com/docs/api).

Contents
--------

[](#contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)

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

[](#requirements)

- PHP &gt;= 7.4
- A Duffel API access token ([this quick start guide](https://duffel.com/docs/guides/quick-start) will help you to create one)

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

[](#installation)

To get started, simply require this library using [Composer](https://getcomposer.org/). You will also need to install packages which provide [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation).

An installation could look like the following command.

```
$ composer require "duffel/api:dev-main" "guzzlehttp/guzzle:^7.4" "http-interop/http-factory-guzzle:^1.2
```

Usage
-----

[](#usage)

A simple example of using this library (after successfully installing it) follows.

```
use Duffel\Client;

$client = new Duffel\Client();
$client->setAccessToken(getenv('DUFFEL_ACCESS_TOKEN'));

$client->airports->list();
```

See the [`examples/`](./examples) directory for additional working examples.

License
-------

[](#license)

Duffel's PHP API Client library is licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance22

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.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 ~152 days

Total

2

Last Release

1309d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/14c8807a7e311dad92f3796219287c4f5645ee73368c54fd6aee531fb9a02a59?d=identicon)[duffel](/maintainers/duffel)

---

Top Contributors

[![sgerrand](https://avatars.githubusercontent.com/u/203366?v=4)](https://github.com/sgerrand "sgerrand (25 commits)")[![jesse-c](https://avatars.githubusercontent.com/u/1405676?v=4)](https://github.com/jesse-c "jesse-c (2 commits)")[![igorp1](https://avatars.githubusercontent.com/u/2934495?v=4)](https://github.com/igorp1 "igorp1 (1 commits)")

---

Tags

travelflightsduffelflights-api

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/duffel-api/health.svg)

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

###  Alternatives

[openai-php/client

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

5.8k22.6M232](/packages/openai-php-client)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[m4tthumphrey/php-gitlab-api

GitLab API v4 client for PHP

9485.4M64](/packages/m4tthumphrey-php-gitlab-api)[darthsoup/php-whmcs-api

WHMCS API client for PHP

2317.3k4](/packages/darthsoup-php-whmcs-api)

PHPackages © 2026

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