PHP Classes
elePHPant
Icontem

File: README.md

Recommend this page to a friend!
  Classes of Peter Kahl  >  PHP European Validation  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP European Validation
Validate European country codes
Author: By
Last change: Added method ShallTheUKRemainInTheEuropeanUnion()
Date: 5 months ago
Size: 1,050 bytes
 

Contents

Class file image Download

European

License If this project has business value for you then don't hesitate to support me with a small donation.

Methods relating to Europe and the European Union.

Usage

use peterkahl\European\European;

echo (European::ShallTheUKRemainInTheEuropeanUnion()) ? 'yes' : 'no'; # yes

echo (European::isEuropeanCountry('RU')) ? 'yes' : 'no';      # no
echo (European::isEuropeanCountry('AL')) ? 'yes' : 'no';      # yes

echo (European::isEEACountry('AR')) ? 'yes' : 'no';           # no
echo (European::isEEACountry('NO')) ? 'yes' : 'no';           # yes

echo (European::isEuropeanUnionCountry('CA')) ? 'yes' : 'no'; # no
echo (European::isEuropeanUnionCountry('GB')) ? 'yes' : 'no'; # yes

echo (European::countryUsesEuro('GB')) ? 'yes' : 'no';        # no
echo (European::countryUsesEuro('MC')) ? 'yes' : 'no';        # yes