PHPackages                             cappuc/rest-countries-php - 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. cappuc/rest-countries-php

AbandonedLibrary[API Development](/categories/api)

cappuc/rest-countries-php
=========================

Rest Countries api client for php

0.2.0-beta(4y ago)0648MITPHPPHP ^7.1

Since Jun 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/cappuc/rest-countries-php)[ Packagist](https://packagist.org/packages/cappuc/rest-countries-php)[ Docs](https://github.com/cappuc/rest-countries-php)[ RSS](/packages/cappuc-rest-countries-php/feed)WikiDiscussions master Synced 3d ago

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

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/47481baf9d02a10e53eb0024e322d3b9b77922fcc2ff25816aed2ad721918ec9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361707075632f726573742d636f756e74726965732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cappuc/rest-countries-php)[![Build Status](https://camo.githubusercontent.com/2568113e7e1226666aa94b88fa17880d38933bf7e0872880a4ce850245d2d926/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6361707075632f726573742d636f756e74726965732d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cappuc/rest-countries-php)[![Total Downloads](https://camo.githubusercontent.com/86c54d15da94fdd50a04aeaf36a1e3dd02cee53ae357a772498253f469ad0a8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361707075632f726573742d636f756e74726965732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cappuc/rest-countries-php)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

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

[](#installation)

You can install the package via composer:

```
composer require cappuc/rest-countries-php
```

Usage
-----

[](#usage)

```
$restCountriesApi = new Cappuc\RestCountries\RestCountriesApi($httpClient, $httpMessageFactory);

$restCountriesApi->all();
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Fabio Capucci](https://github.com/cappuc)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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 ~403 days

Total

4

Last Release

1687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9881c8ffdbe3f838feabbfba94c7a602db2bd84f991913a75cbfd1e21c593e66?d=identicon)[cappuc](/maintainers/cappuc)

---

Top Contributors

[![cappuc](https://avatars.githubusercontent.com/u/4271608?v=4)](https://github.com/cappuc "cappuc (6 commits)")

---

Tags

Cappucrest-countries-php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cappuc-rest-countries-php/health.svg)

```
[![Health](https://phpackages.com/badges/cappuc-rest-countries-php/health.svg)](https://phpackages.com/packages/cappuc-rest-countries-php)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27558.7k3](/packages/apigee-apigee-client-php)[brd6/notion-sdk-php

Notion SDK for PHP

5918.0k](/packages/brd6-notion-sdk-php)[wearerequired/harvest-api-php-client

PHP client library for the Harvest REST API.

14128.3k](/packages/wearerequired-harvest-api-php-client)[php-xapi/client

client library for the Experience API (xAPI)

2344.4k](/packages/php-xapi-client)[lmc/matej-client

API Client for Matej recommendation engine

1159.5k](/packages/lmc-matej-client)

PHPackages © 2026

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