PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2019-06-18 (5 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 90 All time: 9,367 This week: 344Up
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
  Performance   Level  
Name: Peter Kahl <contact>
Classes: 37 packages by
Country: United Kingdom United Kingdom
Age: ???
All time rank: 49525 in United Kingdom United Kingdom
Week rank: 19 Up1 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

 

Details

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::ShallTheUKRemainInTheEuropeanUnion()) ? 'yes' : 'no'; # yes, say those who have a brain.

echo (European::isBorisJohnsonCrookedLiar()) ? 'yes' : 'no';  # yes, of course! He shall be prosecuted.

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

  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:90
This week:0
All time:9,367
This week:344Up