PHP Classes

PHP European Validation: Validate European country codes

Recommend this page to a friend!
  Info   View files Documentation   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 95 All time: 9,833 This week: 122Up
Version License PHP version Categories
european 1.0Custom (specified...5PHP 5, Geography, Validation
Description 

Author

This class can validate European country codes.

It can perform several types of validation of country codes like:

- Validate a two letter country code
- Check if a two letter country code is from an European country, or from the EEA (European Economic Area), or from the European Union
- Check if a given country uses the Euro currency
- Return the information of whether the United Kingdom will remain in the European Union

Innovation Award
PHP Programming Innovation award winner
October 2018
Winner
Certain applications are meant to be used only by European citizens or companies.

This package provide several functions that help validating data that is specific to European contexts like countries codes and which are using the Euro currency.

Manuel Lemos
Picture of Peter Kahl
  Performance   Level  
Name: Peter Kahl <contact>
Classes: 37 packages by
Country: United Kingdom
Age: ???
All time rank: 41721 in United Kingdom
Week rank: 91 Up3 in United Kingdom Up
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Documentation

European

Downloads 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::isEuropeanCountry('GB')) ? 'yes' : 'no';      # yes
echo (European::isEuropeanCountry('RU')) ? 'yes' : 'no';      # no
echo (European::isEuropeanCountry('AL')) ? 'yes' : 'no';      # yes

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

echo (European::isEuropeanUnionCountry('GB')) ? 'yes' : 'no'; # no
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


  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file European.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:95
This week:0
All time:9,833
This week:122Up