fordnox/domain-parser

0.1 2013-06-18 15:38 UTC

This package is not auto-updated.

Last update: 2024-09-14 13:35:28 UTC


README

Build Status

域名解析器

解析URL或字符串中的顶级域名和二级域名

代码示例

    $parser = new Fordnox\DomainParser('example-domain.co.uk');
    print $parser->getSld(); // prints example-domain
    print $parser->getTld(); // prints co.uk