TLDExtract icon indicating copy to clipboard operation
TLDExtract copied to clipboard

[DEPRECATED] Library for extraction of domain parts e.g. TLD. Domain parser that uses Public Suffix List

Results 8 TLDExtract issues
Sort by recently updated
recently updated
newest added

I'm running some domain names through `TLDExtract` and came across a domain not being properly parsed. The URL is called `blogspot.com` ``` $url = 'blogspot.com'; $domain = tld_extract($url); var_dump($domain); Returns:...

Some reading for improve or fix in case it’s needed : https://en.wikipedia.org/wiki/Domain_name introduce https://tools.ietf.org/html/rfc1034 https://tools.ietf.org/html/rfc1035 domain name are URL https://en.wikipedia.org/wiki/Url introduce https://url.spec.whatwg.org/ should permit to close #45

I have tested with hundred of domains, but for the domain test.ru i get the following result: ``` Result {#1711 ▼ -subdomain: null -hostname: "test.ru" -suffix: null } ```

bug

``` $extract = new Extract(); $result = $extract->parse("test@[email protected]")->isValidDomain(); ``` This results in `true`, when it should be `false` ("@" is not allowed in domain names)

The parser fails for the following: ``` // If the subdomain has "-" $url = 'https://s3-ap-southeast-2.amazonaws.com/blabla/blabla/wp-content/uploads/media/2019/03/16860571424_31c94205de_b.jpg'; // Extract domain parts $extract = new \LayerShifter\TLDExtract\Extract(); $domainParser = $extract->parse($url); parse_url($url, PHP_URL_HOST); //...

Hello There is a bug in the libary where it mishandles the backslash character For example https://1337.karimrahal.com\.bla.com would give bla.com as the registered domain where as the browser would lead...

bug

This doesn't seem to work for any blogspot subdomain.. test.blogspot.com gives as registrable domain: test.blogspot.com test.github.com gives as registrable domain: github.com I don't understand how it would work that way?

bug
enhancement

Hello, can you please change the `guzzlehttp/guzzle` package in your composer version 0.2.0? `guzzlehttp/guzzle` version 6.* doesn't support PHP 5.4.0. But version 5.* does. So can you change it to...