Layershifter TLDExtract Versions Save

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

2.0.1

5 years ago

Docs

  • Update supported php versions (#40)
  • Fix getSubdomains function description example (#41)

Improvements

  • PHP 7.3 support
  • Use symfony/polyfill-intl-idn instead of true/punycode (#39)

2.0.0

5 years ago

Breaking changes

getSubdomains() now always returns array (#27, #33)

$extract = new Extract();
$result = $extract->parse('github.com');

$result->getSubdomains(); // before `null`
$result->getSubdomains(); // after `[]`

1.2.7

5 years ago

Fixes

  • Make Extract::suffixExists protected (#34)

1.2.6

5 years ago

Fixes

  • Underscore at end of hostname label causes parsing to fail (#32)

1.2.5

5 years ago

Fixes

  • underscore in hostname bug (#25)

1.2.4

6 years ago

Fixes

  • test..com is valid domain (#22)
  • isValidDomain returns true for domains that are too long (#23)

1.2.3

6 years ago

Impovements

  • PHP 7.2 support

Fixes

  • use INTL_IDNA_VARIANT_UTS46 for idn_* functions (#20)

1.2.2

6 years ago

Fixes

  • fix typo in class constant (#18)

1.2.1

7 years ago

Fixes

  • incorrect parsing domains with number sign (#16)

1.2.0

7 years ago

Features

  • removed dependency on intl extension;
  • PHP 7.1 support.