PHPackages                             doncamillo11/country-eu-check - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. doncamillo11/country-eu-check

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

doncamillo11/country-eu-check
=============================

Checks whether a given country is a member state of the EU.

1.0.0(1y ago)0386↓43.8%PHP

Since Dec 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DonCamillo11/country-eu-check)[ Packagist](https://packagist.org/packages/doncamillo11/country-eu-check)[ RSS](/packages/doncamillo11-country-eu-check/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Country EU Check
================

[](#country-eu-check)

[![Packagist Version](https://camo.githubusercontent.com/17108ade4028c5eb26fd85aad5a6a638e639506d00f6d8fc3d9fc72377bc2a3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f6e63616d696c6c6f31312f636f756e7472792d65752d636865636b)](https://camo.githubusercontent.com/17108ade4028c5eb26fd85aad5a6a638e639506d00f6d8fc3d9fc72377bc2a3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f6e63616d696c6c6f31312f636f756e7472792d65752d636865636b)[![Packagist Downloads](https://camo.githubusercontent.com/4c9ac84669345b20619308d6c12e329a4811cd3dc9153df1ccdd9b92a8a4dd78/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646f6e63616d696c6c6f31312f636f756e7472792d65752d636865636b)](https://camo.githubusercontent.com/4c9ac84669345b20619308d6c12e329a4811cd3dc9153df1ccdd9b92a8a4dd78/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646f6e63616d696c6c6f31312f636f756e7472792d65752d636865636b)[![License](https://camo.githubusercontent.com/509f346b1d39ef366e856628845cfa477ef6902fa1970d683b34fd28a821bd29/68747470733a2f2f706f7365722e707567782e6f72672f646f6e63616d696c6c6f31312f6c617261636f6e6669672f6c6963656e7365)](https://camo.githubusercontent.com/509f346b1d39ef366e856628845cfa477ef6902fa1970d683b34fd28a821bd29/68747470733a2f2f706f7365722e707567782e6f72672f646f6e63616d696c6c6f31312f6c617261636f6e6669672f6c6963656e7365)

Checks whether a given country is a member of the European Union.

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

[](#installation)

You can install the package via composer.

```
composer require doncamillo11/country-eu-check

```

Usage
-----

[](#usage)

To check if a country is a member state of the European Union, `checkEuMembership` method. You can pass an ISO 3166 country code or a country name to the method.

```
use DonCamillo11\CountryEuCheck\CountryEuCheck;

CountryEuCheck::checkEuMembership('DE'); // true
CountryEuCheck::checkEuMembership('CH'); // false
```

or

```
use DonCamillo11\CountryEuCheck\CountryEuCheck;

CountryEuCheck::checkEuMembership('Germany'); // true
CountryEuCheck::checkEuMembership('Switzerland'); // false
```

License
-------

[](#license)

CountryEUCheck is open-sourced software licensed under [the MIT license](LICENSE.md).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

530d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/125701444?v=4)[DonCamillo11](/maintainers/DonCamillo11)[@DonCamillo11](https://github.com/DonCamillo11)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/doncamillo11-country-eu-check/health.svg)

```
[![Health](https://phpackages.com/badges/doncamillo11-country-eu-check/health.svg)](https://phpackages.com/packages/doncamillo11-country-eu-check)
```

###  Alternatives

[algo26-matthias/idna-convert

A library for encoding and decoding internationalized domain names

712.3M14](/packages/algo26-matthias-idna-convert)[sulu/sulu-rector

Rector upgrades rules for Sulu CMS

17334.8k11](/packages/sulu-sulu-rector)

PHPackages © 2026

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