buibr / hlrlookup
Lookup phone number for validity in hlrlookup.com
Installs: 4 773
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- buibr/csv-helper: ^1.4
- guzzlehttp/guzzle: ^6.0
This package is auto-updated.
Last update: 2024-11-14 01:56:47 UTC
README
Lookup phone numbers from hlrlookup.com
Install
composer require buibr/hlrlookup
"buibr/hlrlookup": "dev-master"
Usage Single Lookup
use buibr\HLR\Single;
$config = new buibr\HLR\HlrApi(['apikey'=>'','password'=>'']);
$lookup = new Single( $config );
$object = $lookup->check('38971789062');
Usage Bulk Lookup
use buibr\HLR\Bulk;
$config = new HlrApi(['apikey'=>'','password'=>'']);
$lookup = new Bulk( $config );
$batch = $lookup->submit(true, ['38971789062', '38971789062', '38971789062']);
while(true){
$status = $lookup->status($batch);
if($status->getStatus() === 'complete'){
$download = $lookup->download($batch);
foreach($download->getData() as $record) {
....
}
break;
}
sleep(1);
}