https://github.com/buibr/hlrlookup
hlrlookup
https://github.com/buibr/hlrlookup
Last synced: about 1 year ago
JSON representation
hlrlookup
- Host: GitHub
- URL: https://github.com/buibr/hlrlookup
- Owner: buibr
- Created: 2019-05-07T13:11:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-06-13T22:42:30.000Z (about 3 years ago)
- Last Synced: 2025-05-07T22:03:59.506Z (about 1 year ago)
- Language: PHP
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Lookup phone numbers from hlrlookup.com
Install
----------------
```bash
composer require buibr/hlrlookup
```
```bash
"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);
}
```