ICANN base hostname parsing implemented in PHP.
WARNING: Some people use the PSL to determine what is a valid domain name and what isn't. This is dangerous, particularly in these days where new gTLDs are arriving at a rapid pace, if your software does not regularly receive PSL updates, because it will erroneously think new gTLDs are not valid. The DNS is the proper source for this in normal condition. If you must use it for this purpose, please do not bake static copies of the PSL into your software with no update mechanism.
- PHP >= 7.0 but the latest stable version of PHP is recommended
$ composer require league/uri-hostname-parser
Full documentation can be found at uri.thephpleague.com.
$ composer test
If you discover any security related issues, please email email@example.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This work is based on a Fork of PHP Domain Parser