library domain-informer
HoPanel Component- Domain Parse and Information Tool
hopanel/domain-informer
HoPanel Component- Domain Parse and Information Tool
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
[TĆ¼rkƧe]
Domain informer
Domain hakkında temel bilgileri verir.
Php'nin buildin fonksiyonları ile ƧalıÅır., (*1)
Kullanımı
<?php
$url = 'https://user:pass@subdomain.domain.tld:9090/path/to/file.html?query=queryt#hash';
$parser = new Parser();
$result = $parser->parseUrl($url);
print_r($result);
Hodi\HodiResponse Object
(
[data:Hodi\HodiResponse:private] => Array
(
[scheme] => https
[host] => subdomain.domain.exp
[port] => 9090
[user] => user
[pass] => pass
[path] => /path/to/file.html
[query] => query=queryt
[fragment] => hash
[nameservers] => Array
(
)
)
[status:protected] => 1
[errorMessage:protected] =>
[isDomain:protected] => 1
[isIp:protected] =>
[domainScheme:protected] => https
[domainHost:protected] => subdomain.domain.exp
[domainPort:protected] => 9090
[domainUser:protected] => user
[domainPass:protected] => pass
[domainPath:protected] => /path/to/file.html
[domainQuery:protected] => query=queryt
[domainFragment:protected] => hash
[domainNameservers:protected] => Array
(
)
)
Array sonuƧ almak iƧin, (*2)
$parser->toArray();
Unit Tests
composer install
vendor/bin/phpunit tests