定制 gbcl/userip 二次开发

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

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

gbcl/userip

最新稳定版本:1.1.0

Composer 安装命令:

composer require gbcl/userip

包简介

Geolocation for Flarum

README 文档

README

extiverse

Display the IP address of the posting below the post

ScreenShot

ss

Install

composer require gbcl/userip:"*"
php flarum migrate

Update

composer update gbcl/userip:"*"
php flarum cache:clear
php flarum migrate

Remove

composer remove gbcl/userip
php flarum cache:clear

How to use

You just need to open the extension in the admin panel. :)

Feature

  • Support for websites using CDN
  • Concise, detailed, understandable style
  • No bugs (maybe?)

Extending

You can easily extend this extension to support different API providers, if you follow these steps:

  • In your new extension, require gbcl/userip as a dependency
  • Define a new Service that implements GBCLStudio\GeoIp\Api\GeoIpInterface and extends GBCLStudio\GeoIp\Api\Service\BaseService
  • In your new extension's extend.php, register the service: new GBCLStudio\GeoIp\Extend\ApiProvider(MyNewService::class);
  • Provide the required translations under the gbcl-userip namespace, for example: gbcl-userip.admin.service.YOUR_NEW_EXTENSION.label, specific translations The text can be found at here

Note

Builtin IP domain API is provided by ip.sb and IpInfo

Referenced code from the following projects: fof/geoip, fof/oauth

Support my work at afdian

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-12