fordnox/domain-parser

0.1 2013-06-18 15:38 UTC

README

Build Status

Domain Parser

Parse Top level and second level domain string from URL or string

Code Example

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