fordnox/domain-parser

0.1 2013-06-18 15:38 UTC

This package is not auto-updated.

Last update: 2024-12-21 14:48:08 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