Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lefuturiste/iptator
The best way to get details about an IP address, no php ext required. Get ip details from multiple api source.
https://github.com/lefuturiste/iptator
Last synced: 4 days ago
JSON representation
The best way to get details about an IP address, no php ext required. Get ip details from multiple api source.
- Host: GitHub
- URL: https://github.com/lefuturiste/iptator
- Owner: lefuturiste
- Created: 2018-12-01T15:28:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-02T10:30:32.000Z (almost 6 years ago)
- Last Synced: 2024-11-02T03:46:51.933Z (15 days ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Iptator
The best way to get details about an IP address, no php ext required. Get ip details from multiple api source.
## Install
`composer install lefuturiste/iptator`
## Requirement
This package use the guzzle http php library to make http request, so curl ext is required.
## Usage
```php
use Iptator\Scanner;$scanner = new Scanner();
$ip = $scanner->scan('1.1.1.1');
$ip->isp; // Cloudflare, Inc.
$ip->countryName; // Australia
$ip->city; // South Brisbane
```## Adapters
- ipapi.co
- ip-api.com## Test
`vendor/bin/phpunit tests`