thephpleague/uri-hostname-parser

Name: uri-hostname-parser

Owner: The League of Extraordinary Packages

Description: A lightweight hostname parser according to public suffix list ICANN section

Created: 2017-11-20 16:47:41.0

Updated: 2018-05-22 13:09:34.0

Pushed: 2018-02-16 07:34:51.0

Homepage: https://uri.thephpleague.com

Size: 909

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Uri Hostname Parser

Build Status Latest Version

This package contains a lightweight domain parser using the Public Suffix List (PSL) ICANN section based on the excellent work by Jeremy Kendall.

WARNING: Some people use the PSL to determine what is a valid domain name and what isn't. This is dangerous, particularly in these days where new gTLDs are arriving at a rapid pace, if your software does not regularly receive PSL updates, because it will erroneously think new gTLDs are not valid. The DNS is the proper source for this in normal condition. If you must use it for this purpose, please do not bake static copies of the PSL into your software with no update mechanism.

System Requirements

You need:

Dependencies
Installation
mposer require league/uri-hostname-parser
Documentation

Full documentation can be found at uri.thephpleague.com.

Contributing

Contributions are welcome and will be fully credited. Please see CONTRIBUTING and CONDUCT for details.

Testing

Uri Hostname Parser has a PHPUnit test suite and a coding style compliance test suite using PHP CS Fixer. To run the tests, run the following command from the project folder.

mposer test
Security

If you discover any security related issues, please email nyamsprod@gmail.com instead of using the issue tracker.

Credits
License

The MIT License (MIT). Please see License File for more information.

Attribution

This work is based on a Fork of PHP Domain Parser


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.