Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/larvatecn/laravel-geoip

GeoIP Extension for Laravel.
https://github.com/larvatecn/laravel-geoip

geoip laravel php

Last synced: 12 days ago
JSON representation

GeoIP Extension for Laravel.

Awesome Lists containing this project

README

        

# laravel-geoip


Stable Version
Total Downloads
License

Laravel 的IP位置查询模块。

## 平台支持

- [百度](http://lbsyun.baidu.com)
- [高德](https://lbs.amap.com)
- [QQ](https://lbs.qq.com)
- [淘宝](http://ip.taobao.com)
- [IP-API](https://ip-api.com)
- [IPFinder](https://ipfinder.io)
- [IPInfo](https://ipinfo.io/)
- [IPIP](https://www.ipip.net)
- [LibreSpeed](https://www.librespeed.cn)
- [IPGeoLocation](https://ipgeolocation.io)

## 环境需求

- PHP >= 8.1

## Installation

```bash
composer require larva/laravel-geoip -vv
```

```php
$info= \Larva\GeoIP\GeoIP::get('218.1.2.3');
$info= \Larva\GeoIP\GeoIP::with('baidu')->get('218.1.2.3');
```