PHPackages                             alzpk/restcountries-eu-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. alzpk/restcountries-eu-api

Abandoned → [alzpk/restcountries-php-api-wrapper](/?search=alzpk%2Frestcountries-php-api-wrapper)Library[API Development](/categories/api)

alzpk/restcountries-eu-api
==========================

Restcountries.eu API PHP wrapper

2.0.0(4y ago)016[1 PRs](https://github.com/alzpk/restcountries-eu-api/pulls)MITPHPPHP ^7.4

Since Feb 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/alzpk/restcountries-eu-api)[ Packagist](https://packagist.org/packages/alzpk/restcountries-eu-api)[ RSS](/packages/alzpk-restcountries-eu-api/feed)WikiDiscussions master Synced 1mo ago

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

### Package is abandoned

[](#package-is-abandoned)

*Use this instead: *

PHP wrapper for Restcountries.eu API
====================================

[](#php-wrapper-for-restcountrieseu-api)

PHP wrapper for restcountries.eu API, that returns a model with value objects, based on the response from the API.

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

[](#requirements)

```
{
  "php": "^7.4",
  "guzzlehttp/guzzle": "7.4.2",
  "ext-json": "*"
}
```

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

[](#installation)

```
composer require alzpk/restcountries-eu-api
```

Usage examples
--------------

[](#usage-examples)

```
$client = new \Alzpk\RestCountriesEuAPI\RestCountriesClient();

// Fetch all countries
$countries = $client->all();

// Fetch countries by searching names
$countries = $client->name('Denmark');
```

Client Map
----------

[](#client-map)

MethodParamsExample*all*`$client->all();`*name*(string) Country name`$client->name('Denmark');`*code*(string) Country code`$client->code('208');`*codes*(array) List of country codes`$client->codes(['208', '209']);`*currency*(string) Country currency`$client->curency('DKK');`*language*(string) Country language`$client->language('da');`*callingCode*(string) Country calling code`$client->callingCode('45');`*region*(string) Country region`$client->region('Europe');`*regionalBloc*(string) Country regional block`$client->regionalBloc('EU');`Testing
-------

[](#testing)

The package comes with individual tests for models, value objects and wrapper.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

1696d ago

Major Versions

1.0.1 → 2.0.02021-09-16

### Community

Maintainers

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

---

Top Contributors

[![alzpk](https://avatars.githubusercontent.com/u/25452420?v=4)](https://github.com/alzpk "alzpk (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alzpk-restcountries-eu-api/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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