This package is deprecated Please consider using an stable alternative for any production code.

URI Hostname Parser

Build Status Latest Version

This library replaces PHP Domain Parser starting with version 5.2.0

This library contains

This library contains a lightweight domain parser using the Public Suffix List (PSL) ICANN section based on the excellent PHP Domain Parser by Jeremy Kendall.

The main differences with PHP Domain Parser are:

To validate your hostname please refer to URI components
To validate your cookie headers please use PHP Domain Parser.

This library depends on PSR-16.

System Requirements

You require:

Installation

$ composer require league/uri-hostname-parser