php-extended / php-tld-provider-mozilla
A library to get the tld list from the public suffix list and build the tld hierarchy
Package info
gitlab.com/php-extended/php-tld-provider-mozilla
pkg:composer/php-extended/php-tld-provider-mozilla
9.0.8
2026-06-07 14:38 UTC
Requires
- php: >=8.2
- php-extended/php-tld-object: ^9
- php-extended/php-tld-provider-interface: ^9
Requires (Dev)
This package is auto-updated.
Last update: 2026-06-07 12:38:57 UTC
README
An implementation of the php-tld-interface library.
Last Updated Date : 2026-06-07
Installation
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.pharfrom their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-tld-provider-mozilla ^9
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('example.com'); // returns false
License
MIT (See license file).