PHPackages                             hyperplural/warface-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. hyperplural/warface-sdk

ActiveLibrary[API Development](/categories/api)

hyperplural/warface-sdk
=======================

Fast and flexible SDK client of the Warface API in PHP.

5.2.0(4mo ago)1303MITPHPPHP &gt;=8.1CI passing

Since Jul 8Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/hyperplural/warface-sdk)[ Packagist](https://packagist.org/packages/hyperplural/warface-sdk)[ RSS](/packages/hyperplural-warface-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (24)Used By (0)

Warface SDK (PHP)
=================

[](#warface-sdk-php)

[![Coverage](https://camo.githubusercontent.com/32855e94577df9d0a30995653b17d33a5fbfdf644518f96ea0374313397d19b7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e)](https://camo.githubusercontent.com/32855e94577df9d0a30995653b17d33a5fbfdf644518f96ea0374313397d19b7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e)

Fast, PSR‑18 HTTP‑client agnostic SDK for the public Warface API. Requires PHP &gt;= 8.1.

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

[](#installation)

```
composer require hyperplural/warface-sdk guzzlehttp/guzzle:^7 http-interop/http-factory-guzzle:^1
```

Decoupled from any specific HTTP client via [HTTPlug](https://httplug.io/).

Quickstart
----------

[](#quickstart)

```
use Hyperplural\WarfaceSdk\Client;
use Hyperplural\WarfaceSdk\Enum\RatingLeague;
use Hyperplural\WarfaceSdk\Enum\GameClass;

$client = new Client();

// Player stats
$stat = $client->user()->stat('Nickname');

// Player achievements
$achievements = $client->user()->achievements('Nickname');

// Achievement catalog
$catalog = $client->achievement()->catalog();

// Clan info
$clan = $client->clan()->members('ClanName');

// Missions
$missions = $client->game()->missions();

// Ratings
$monthly = $client->rating()->monthly('', RatingLeague::ELITE);
$top100 = $client->rating()->top100(GameClass::MEDIC);
```

Custom HTTP client
------------------

[](#custom-http-client)

Provide your own PSR‑18 client (e.g., Symfony HttpClient with HTTPlug adapter):

```
use Hyperplural\WarfaceSdk\Client;
use Symfony\Component\HttpClient\HttplugClient;

$client = Client::createWithHttpClient(new HttplugClient());
```

References
----------

[](#references)

- Official docs:
- WFTS (legacy application) as an additional reference source.

Testing
-------

[](#testing)

```
composer test
```

Unit tests rely on JSON fixtures and a mock HTTP client — no network required. CI enforces 100% line coverage.

License
-------

[](#license)

MIT. See LICENSE for details.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance76

Regular maintenance activity

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 75.9% 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 ~105 days

Recently: every ~269 days

Total

20

Last Release

130d ago

Major Versions

1.0 → 2.02020-07-28

2.2 → 3.02021-01-30

3.3.8 → 4.0.02022-10-01

4.0.2 → 5.0.02023-03-13

PHP version history (5 changes)1.0PHP &gt;=7.4.0

2.1PHP &gt;=7.4

3.0PHP ^7.4 || ^8.0

5.0.1PHP &gt;=8.2

5.2.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/91005daecfe8b76bfc8f10f576fa16be915e9026f6cdb986134a1fa9e66f98d0?d=identicon)[hyperplural](/maintainers/hyperplural)

---

Top Contributors

[![hyperplural](https://avatars.githubusercontent.com/u/33278849?v=4)](https://github.com/hyperplural "hyperplural (22 commits)")[![invisigal](https://avatars.githubusercontent.com/u/248424208?v=4)](https://github.com/invisigal "invisigal (7 commits)")

---

Tags

apiphpsdkwarfacewarface-api

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[brd6/notion-sdk-php

Notion SDK for PHP

5918.0k](/packages/brd6-notion-sdk-php)[darthsoup/php-whmcs-api

WHMCS API client for PHP

2317.3k4](/packages/darthsoup-php-whmcs-api)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)

PHPackages © 2026

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