A library to get the tld list from the public suffix list and build the tld hierarchy

6.0.15 2023-11-26 01:15 UTC


An implementation of the php-tld-interface library.

coverage build status

Last Updated Date : 2023-11-26


The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-tld-provider-mozilla ^6

Basic Usage

You may use this library this way to build a hierarchy :

use PhpExtended\Tld\MozillaTopLevelDomainProvider;

$provider = new MozillaTopLevelDomainProvider();
$hierarchy = $provider->getHierarchy();
$hierarchy->isTld(''); // returns false


MIT (See license file).