doncamillo11/country-eu-check

There is no license information available for the latest version (1.0.0) of this package.

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

1.0.0 2024-12-04 12:06 UTC

This package is auto-updated.

Last update: 2025-03-05 20:17:23 UTC


README

Packagist Version Packagist Downloads License

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

Installation

You can install the package via composer.

composer require doncamillo11/country-eu-check

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

CountryEUCheck is open-sourced software licensed under the MIT license.