承接 arimolzer/ipstack 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

arimolzer/ipstack

Composer 安装命令:

composer require arimolzer/ipstack

包简介

Laravel package for geolocation using the IPStack API

README 文档

README

Build Status StyleCI Packagist

This package has been created as a simple facade to access the IPStack API.

Take a look at contributing.md to see a to do list.

Installation

Getting started with IPStack is easy, first install the package via Composer:

composer require arimolzer/ipstack

Then, optionally, publish the package configuration.

php artisan vendor:publish --provider="Arimolzer\IPStack\IPStackServiceProvider"

Then, you can set your environmental variables:

Variable Description Default
IPSTACK_API_KEY API Key For IP Stack null
IPSTACK_BASE_URI Base URL for the API https://api.ipstack.com/
IPSTACK_DEFAULT_TESTING_IP The default IP to be used by tests for a successful response 134.201.250.155

Usage

Single IP Lookup

To lookup the geolocation of a single IP address:

use \Arimolzer\IPStack\Facades\IPStack;

IPStack::get('134.201.250.155')

Bulk IP Address lookup

IP Stack supports bulk IP lookups, with a maximum of 50 addresses. Simply pass through an array of IP addresses to the getBulk method.

Important

The 'Professional' subscription tier is required to access the bulk endpoint.

IPStack::getBulk(['134.201.250.155' ,'72.229.28.185', '110.174.165.78'])

Change log

Please see the changelog for more information on what has changed recently.

Testing

composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email ari.molzer@molzertech.com instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-12