io-developer / php-whois

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 8.0 compatible (5.4+ old versions)
MIT License
438 stars 117 forks source link

Hey getting ["Registrant Name"] #128

Closed nam-co closed 3 years ago

nam-co commented 4 years ago

Hi, thanks for the work on the great package, I was wondering how can I get the ["Registrant Name"], normally the registrant personal name

Thanks

io-developer commented 4 years ago

Hi. Check this out, if I understand question correctly it would help - https://github.com/io-developer/php-whois/issues/111

nam-co commented 4 years ago

Hi, thanks for the answer, I saw the post but it didn't work, Im just looking to get the "Admin Name", appreciate the help

sirkokoenig commented 3 years ago

Any news on this?

nam-co commented 3 years ago

Hi @sirkokoenig I just got back to. this and got it working this way:

$data = $whois->loadDomainInfo($domain);
$extra = $data->getExtra()['groups'][0];
$owner_email = $extra['Registrant Email'] or name or phone