Download .zip |
Info | Documentation | View files (5) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2020-01-31 (2 hours ago) | Not yet rated by the users | Total: 90 | All time: 9,395 This week: 344 |
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 |
File | Role | Description | ||
---|---|---|---|---|
src (1 file) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
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.