domains
domains copied to clipboard
Lite & fast micro PHP domain parsing library that is **easy to use**.
Added the linter.yml in workflows and updated the composer.
I have added the code analyzer and corrected most errors in existing files.  I am currently unable to solve these 2. Please guide me on this
I dont think that this result is expected, also getRegisterable returns the complete domain name with the subdomain in it. Example: ``` Utopia\Domains\Domain Object ( [domain:protected] => notcivil.blogspot.com [TLD:protected] =>...
This PR adds `isExternal` onto the `Domain` class that performs a DNS Lookup and ensures that a domain does not attempt to access private domain ranges
Issue: utopia-php/framework#103
### 👟 Reproduction steps ```php $domain_check = new Domain($data['domain']); var_dump($domain_check->get()); var_dump($domain_check->getTLD()); var_dump($domain_check->getSuffix()); var_dump($domain_check->getRegisterable()); var_dump($domain_check->getName()); var_dump($domain_check->getSub()); var_dump($domain_check->isKnown()); var_dump($domain_check->isICANN()); var_dump($domain_check->isPrivate()); var_dump($domain_check->isTest());die(); ``` ``` string(16) "www.test-8__.com" string(3) "com" string(3) "com" string(12) "test-8__.com" string(8)...
- replace assertEquals with assertSame