定制 faridbabayev/geoip 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

faridbabayev/geoip

Composer 安装命令:

composer require faridbabayev/geoip

包简介

This package provides an API for the ReallyFreeFeoip

README 文档

README

Latest Version on Packagist Build Status Quality Score Total Downloads

This package provides an API for the ReallyFreeFeoip

Installation

You can install the package via composer:

composer require faridbabayev/geoip

Usage

use FaridBabayev\Geoip\Geoip;

$geoip = new Geoip(); // this will fetch ip geolocation for server ip address
$geoip = new Geoip('75.197.224.3'); // this will ip geolocation for 75.197.224.3

You can get ip geolocation by accessing

$geoip = new Geoip();
$geoip->ip;  //return ip address
$geoip->country_code;  // return country code
$geoip->country_name;  // return country name
$geoip->region_code;  // return region code
$geoip->city;  // return city
$geoip->zip_code;  // return zip_code
$geoip->time_zone;  // return time zone
$geoip->latitude;  // return latitude 
$geoip->metro_code;  // return metro_code  

You can change ip address for a new ip geolocation by calling for() method without instantiating new class:

$geoip = new Geoip();
$geoip->for('75.197.224.3');
$geoip->country_code;  // return country code

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email farid.b@code.edu.az instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固