GitHub repository: ndwhelan/effective-TLDs
Description: PHP code to build TLD Suffix set from publicsuffix.org, as well as a class for determining a domain's public suffix.