Skip to content

DonCamillo11/country-eu-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Country EU Check

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages