Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/buibr/hlrlookup
hlrlookup
https://github.com/buibr/hlrlookup
Last synced: 23 days ago
JSON representation
hlrlookup
- Host: GitHub
- URL: https://github.com/buibr/hlrlookup
- Owner: buibr
- Created: 2019-05-07T13:11:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-13T22:42:30.000Z (over 1 year ago)
- Last Synced: 2024-04-29T14:22:53.423Z (8 months ago)
- Language: PHP
- Size: 72.3 KB
- Stars: 0
- Watchers: 2
- 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);
}
```