Registry / utility / layershifter-tld-extract

layershifter-tld-extract

JSON →
library2.0.1phppackagistunverified

Library for extracting parts of a domain, e.g., domain parser.

composer require layershifter/tld-extract
INSTALL
IMPORT
SIG · LAYERSHIFTER-TLD-E
L
layershifter-tld-extract
utilityphpv2.0.1
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.

Extract
use Layershifter\TLDExtract\Extract;

Parse a URL to extract domain components.

use Layershifter\TLDExtract\Extract; $extract = new Extract(); $result = $extract->parse('http://www.example.co.uk'); echo $result->getRegisteredDomain(); // example.co.uk
Debug
Known issues
breakingRequires PHP 7.4+; older versions may cause errors.
fix
Upgrade PHP to 7.4 or later.
affects: <2.0.0
Upgrade
Version history
2.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
layershifter-tld-extract — pip install layershifter-tld-extract · libregistry