| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 96 | All time:  9,863 This week: 660  | ||||
| Version | License | PHP version | Categories | |||
| european 1.0 | Custom (specified... | 5 | PHP 5, Geography, Validation | 
| Description | Author | |
| This class can validate European country codes. Innovation Award | 
Methods relating to Europe and the European Union.
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 (5) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  src (1 file) | ||||
|    .travis.yml | Data | Auxiliary data | ||
|    composer.json | Data | Auxiliary data | ||
|    LICENSE | Lic. | License text | ||
|    README.md | Doc. | Documentation | ||
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.