Class that lookup’s for a country code then it redirects (include files, or callbacks) the user to desired content you want. The function of this class is like Google that redirects users from countries that support google e.g. in UK when you enter google.com you will be redirected to google.co.uk and this is exactly what you can do with CountryDetector
This class is builded in static context for purpose of best usage. Also it is very easy to implement
Updated
There is added another function called
includeFileOnce
for purposes when you want to include just once a file, and ignore other below declaration lines
Features
- Country detect then redirect
- Country detect then include a specific file
- Country detect then call a function defined by you (callback)
Requirements
PHP 5



217 Purchases
45 Comments