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 issues](https://github.com/alzpk/restcountries-eu-api/issues)[1 PRs](https://github.com/alzpk/restcountries-eu-api/pulls)MITPHPPHP ^7.4CI failing

Since Feb 12Pushed 1w 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 today

READMEChangelog (3)Dependencies (2)Versions (7)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

37

—

LowBetter than 81% of packages

Maintenance64

Regular maintenance activity

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

1750d 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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M974](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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