Zend Framework module with API client to access Arin WHOIS RWS API
Install the module using Composer into your application's vendor directory. Add the following line to your
composer.json
.
{
"require": {
"firelike/arin": "^1.*"
}
}
Enable the module in your application.config.php
file.
return array(
'modules' => array(
'Firelike\Arin'
)
);
Copy and paste the arin.local.php.dist
file to your config/autoload
folder and customize it with your credentials and
other configuration settings. Make sure to remove .dist
from your file.Your arin.local.php
might look something like the following:
<?php
return [
'arin_service' => [
'service_url' => 'http://whois.arin.net/rest',
]
];
use Firelike\Arin\Service\ArinService;
$service = new ArinService();
$params = [
'handle' => 'ARIN'
];
$records = $service->AsnLookup($params);
var_dump($records);
$params = [
'handle' => 'NET-93-0-0-0-1'
];
$records= $service->CustomerLookup($params);
$params = [
'handle' => '64.233.160.0'
];
$records= $service->IpLookup($params);
$params = [
'handle' => 'NET-93-0-0-0-1'
];
$records= $service->NetLookup($params);
$params = [
'handle' => 'ARIN'
];
$records= $service->OrgLookup($params);
$params = [
'handle' => 'KOSTE-ARIN'
];
$records= $service->PocLookup($params);
- asn
- customer
- ip
- net
- org
- poc