PHPackages                             drunomics/xtrf-rest-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. [HTTP &amp; Networking](/categories/http)
4. /
5. drunomics/xtrf-rest-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

drunomics/xtrf-rest-client
==========================

XTRF REST client library based on Guzzle

1.0.0(9y ago)0433GPL-2.0+PHPPHP &gt;=5.5

Since Dec 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/drunomics/xtrf-rest-client)[ Packagist](https://packagist.org/packages/drunomics/xtrf-rest-client)[ Docs](https://github.com/drunomics/xtrf-rest-client)[ RSS](/packages/drunomics-xtrf-rest-client/feed)WikiDiscussions master Synced 2mo ago

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

XTRF REST client library
========================

[](#xtrf-rest-client-library)

REST client library based on Guzzle.

The client provides a nice API using model classes for the data structure. The models are generated based upon the Swagger REST service specification. See .

The specification (swagger.json) can be edited using Swagger's online editor:

Usage
-----

[](#usage)

```
$config = [
  'base_uri' => 'http://example.com',
  'username' => 'test',
  'password' => 'test',
];
$client = \drunomics\XtrfClient\XtrfClient::create($config);
$quote = $client->getQuote($quote_id);
//...
// More examples like quote creation can be found at the tests, see https://github.com/drunomics/xtrf-rest-client/blob/master/tests/XtrfApiIntegrationTest.php#L145.

```

Notes on using swagger-UI:
--------------------------

[](#notes-on-using-swagger-ui)

see

Swagger-ui can be used to provide a good overview and curl commands for testing. The following instructions describe how to run swagger-ui easily:

- Run swagger-ui via "composer swagger-ui" command.
- Start with the authentication call. It's result needs to be copied into the api-key field at the top.
- The cookie authentication does not work from swagger. But the generated curl commands do. If you have troubles with SSL verification you can prepend the curl options:

    curl -3 --insecure OTHER OPTIONS

Generate models based upon swagger spec
---------------------------------------

[](#generate-models-based-upon-swagger-spec)

- Run `composer install` in the libraries directory
- Run `composer generate` - that's it.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

3435d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/132232?v=4)[Wolfgang Ziegler](/maintainers/fago)[@fago](https://github.com/fago)

![](https://www.gravatar.com/avatar/d48645701b18080624db183e1ea1672bb27265bfa94a3ac183c79e478e23509d?d=identicon)[milkovsky](/maintainers/milkovsky)

---

Top Contributors

[![milkovsky](https://avatars.githubusercontent.com/u/1665580?v=4)](https://github.com/milkovsky "milkovsky (5 commits)")[![fago](https://avatars.githubusercontent.com/u/132232?v=4)](https://github.com/fago "fago (1 commits)")

---

Tags

restGuzzleXTRF

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/drunomics-xtrf-rest-client/health.svg)

```
[![Health](https://phpackages.com/badges/drunomics-xtrf-rest-client/health.svg)](https://phpackages.com/packages/drunomics-xtrf-rest-client)
```

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[api-platform/symfony

Symfony API Platform integration

323.2M67](/packages/api-platform-symfony)[api-platform/serializer

API Platform core Serializer

223.4M31](/packages/api-platform-serializer)[api-platform/openapi

Models to build and serialize an OpenAPI specification.

353.3M48](/packages/api-platform-openapi)[infobip/infobip-api-php-client

PHP library for consuming Infobip's API

921.8M10](/packages/infobip-infobip-api-php-client)

PHPackages © 2026

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