Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Tld Extract

Tld Extract Laravel Package

layershifter/tld-extract

Lightweight PHP library that extracts the top-level domain, domain name, and subdomain from URLs and email addresses using an accurate public suffix list. Simple static API returns structured results, making it easy to validate and parse domains in any Laravel or plain PHP project.

View on GitHub
Deep Wiki
Context7

TLDExtract is a lightweight PHP library for accurately parsing domains using the official Public Suffix List. It extracts the top-level domain, registrable domain, and subdomain from any URL or hostname, correctly handling complex multi-part suffixes like co.uk and github.io.

  • Extracts TLD, registrable domain, and subdomain in one call
  • Uses the Public Suffix List for accurate multi-level suffix detection
  • Supports IDN and UTF-8 domains
  • Provides a PSR-16 cache interface for fast repeated lookups
  • Simple, framework-agnostic API with zero configuration required
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource