Registry / utility / jeremykendall-php-domain-parser

jeremykendall-php-domain-parser

JSON →
library6.4.0phppackagistunverified

Public Suffix List and IANA Root Zone Database based Domain parsing implemented in PHP.

composer require jeremykendall/php-domain-parser
INSTALL
IMPORT
SIG · JEREMYKENDALL-PHP-
J
jeremykendall-php-domain-parser
utilityphpv6.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DomainParser
use JeremyKendall\PhpDomainParser\DomainParser;

Parse a domain to extract registrable domain and subdomain.

use JeremyKendall\PhpDomainParser\DomainParser; $parser = new DomainParser(); $result = $parser->parse('sub.example.co.uk'); echo $result->registrableDomain; // example.co.uk
Debug
Known issues

No known issues recorded.

Upgrade
Version history
6.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
jeremykendall-php-domain-parser — pip install jeremykendall-php-domain-parser · libregistry