# jeremykendall/php-domain-parser

Public Suffix List based domain parsing implemented in PHP

Repository: https://github.com/jeremykendall/php-domain-parser
Canonical: https://ross.abutalabs.com/products/php-domain-parser
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-01-30T19:30:29+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 65, release rhythm 16, longevity 100
- inputs: {"age_days": 4982, "days_push": 215, "days_rel": 494, "gap_med": 167, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1238, forks 126 (observed 2026-08-28T04:04:05.565176+00:00)

## What it is
A PHP library that parses domain names into their component parts (subdomain, registrable domain, second-level domain, public suffix) using the Public Suffix List and IANA Top Level Domain List. It supports IDN hosts and provides accurate resolution that regex-based approaches cannot match.

## Use cases
- parse domains into subdomain and registrable domain parts
- extract public suffix from a domain name
- validate domains against the public suffix list
- handle internationalized domain names in PHP
- split urls to get the registrable domain
- resolve second-level domains like co.uk

## When to avoid
- you only need simple URL parsing without domain component breakdown
- you work outside the PHP ecosystem

## Facets
- artifact type: library
- maturity: active
- function: parser, web-scraping, developer-tools
- domain: web-development, parsers, developer-tools
- platform: php, cli
- tags: public-suffix-list, domain-parsing, idn, url-parsing

## Member repositories
- jeremykendall/php-domain-parser (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:05.565176+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:10:04.400806+00:00, confidence not recorded.
  - readme: https://github.com/jeremykendall/php-domain-parser (fetched 2026-08-28T04:04:05.565176+00:00, sha 3613786a59f7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
