I've written now an TLD-HelperClass for some extended domain names.
Here i'm using the public TLD-List from https://publicsuffix.org/list/public_suffix_list.dat.
Here is the Result:
I will commit the new version, if i had implemented the renewing process.
Here i'm using the public TLD-List from https://publicsuffix.org/list/public_suffix_list.dat.
Here is the Result:
PHP Code:
stdClass Object
(
[prefix] =>
[domain] => example
[suffix] => co.uk
[original] => example.co.uk
)
stdClass Object
(
[prefix] => testing.example.somewhere
[domain] => example
[suffix] => co.uk
[original] => testing.example.somewhere.example.co.uk
)
stdClass Object
(
[prefix] => subdomain
[domain] => example
[suffix] => co.uk
[original] => subdomain.example.co.uk
)
stdClass Object
(
[prefix] => subdomain
[domain] => example
[suffix] => de
[original] => subdomain.example.de
)
stdClass Object
(
[prefix] =>
[domain] => example
[suffix] => com
[original] => example.com
}
I will commit the new version, if i had implemented the renewing process.