rinvex / countries

Rinvex Country is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.
https://rinvex.com
MIT License
1.65k stars 206 forks source link

Add get data protection #217

Closed ninjahza closed 2 years ago

ninjahza commented 2 years ago

This feature adds functionality to determine the data protection of a country.

EU countries (and territories) and the UK (and territories) will return 'GDPR' All other countries will return 'Other' except Maldives which will return null (only country without data protection).

Data sourced from: https://worldpopulationreview.com/country-rankings/gdpr-countries https://www.dataguidance.com/jurisdiction/maldives

$egypt->getDataProtection()

Output of all countries: https://gist.github.com/ninjahza/d1ca086f52c3bd934838fdd3bab3aa4f

Omranic commented 2 years ago

Thank you @ninjahza for this valuable PR, merged! ✅