PHP Classes

File: readme.txt

Recommend this page to a friend!
  Classes of Artur Barseghyan  >  PHP TLD Domain Name  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: Readme
Class: PHP TLD Domain Name
Determine the Top Level Domain from a given URL
Author: By
Last change: License update
Date: 9 years ago
Size: 640 bytes


Class file image Download
    Artur Barseghyan (

    MPL 1.1/GPL 2.0/LGPL 2.1

    Extracts the top level domain (TLD) from a URL given. List of TLD names is taken from

    To get the top level domain name from the URL given:
        require 'tld/utils.php';
        echo Tld::getTld("")

    To update/sync the tld names with the most recent version run the following from your terminal:
        php -f tld/update.php

    To run tests:
        php -f tld/tests.php
For more information send a message to info at phpclasses dot org.