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

ActiveLibrary[API Development](/categories/api)

wprs/api
========

Provides an API for CIVL WPRS

0.2.0(3y ago)08MITHTMLPHP ^7.4 || ^8.0

Since Apr 17Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

wprs-api
========

[](#wprs-api)

[![packagist](https://camo.githubusercontent.com/cffee1fb215fbb90bdd9eae7fa9186f12194730aca49d442cec3af32995c49cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f777072732f617069)](https://packagist.org/packages/wprs/api)[![Continuous Integration](https://github.com/johnstevenson/wprs-api/actions/workflows/continuous-integration.yml/badge.svg?branch=main)](https://github.com/johnstevenson/wprs-api/actions?query=branch:main)[![license](https://camo.githubusercontent.com/977811ad9b601f34b5b335b16bcb6de6e0075ecdccf7518554a1b90a1e4a006f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6f686e73746576656e736f6e2f777072732d6170692e737667)](https://camo.githubusercontent.com/977811ad9b601f34b5b335b16bcb6de6e0075ecdccf7518554a1b90a1e4a006f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6f686e73746576656e736f6e2f777072732d6170692e737667)[![php](https://camo.githubusercontent.com/4dfaebdf13ddfd4356db8234ffe11ae24199195c44cd5bbd2f2d187b3df5537c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f777072732f6170693f636f6c6f72423d383839324246)](https://camo.githubusercontent.com/4dfaebdf13ddfd4356db8234ffe11ae24199195c44cd5bbd2f2d187b3df5537c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f777072732f6170693f636f6c6f72423d383839324246)

A PHP library to scrape data from the FAI CIVL [World Ranking System (WPRS)](https://civlcomps.org/rankings)

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

[](#installation)

Install the latest version with:

```
$ composer require wprs/api
```

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

[](#requirements)

- PHP 7.4 minimum, although using the latest PHP version is highly recommended.

About
-----

[](#about)

The original [WPRS](http://civlrankings.fai.org/) stopped receiving updates when a new system was introduced in 2021. Despite hopes that a basic API (at minimum) would be provided, this did not happen.

This library provides an API for page-scraping the new web site. It is hoped that this may lead to a proper API in the future.

Usage
-----

[](#usage)

Full usage information is available in the [documentation](docs/00-intro.md).

License
-------

[](#license)

This library is licensed under the MIT License, see the LICENSE file for details.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~12 days

Total

3

Last Release

1102d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27d8b7d4cfabb5ee43654da874119af04150f7a3da33bd70f66cc311a0bea8cf?d=identicon)[johnstevenson](/maintainers/johnstevenson)

---

Top Contributors

[![johnstevenson](https://avatars.githubusercontent.com/u/881777?v=4)](https://github.com/johnstevenson "johnstevenson (46 commits)")

---

Tags

rankingwprscivl

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[maxmind/web-service-common

Internal MaxMind Web Service API

29783.1M2](/packages/maxmind-web-service-common)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60014.4M62](/packages/mollie-mollie-api-php)[firstred/postnl-api-php

PostNL REST API PHP Bindings

27610.2k1](/packages/firstred-postnl-api-php)[mhujer/fio-api-php

Fio API PHP implemention

37199.1k1](/packages/mhujer-fio-api-php)[mvdnbrk/dhlparcel-php-api

DHL Parcel API client for PHP

3957.9k5](/packages/mvdnbrk-dhlparcel-php-api)[optiosteam/payconiq-client-php

Payconiq API client library for PHP developed by Optios.

1273.4k](/packages/optiosteam-payconiq-client-php)

PHPackages © 2026

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