fordnox/domain-parser

0.1 2013-06-18 15:38 UTC

This package is not auto-updated.

Last update: 2024-11-09 14:23:16 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