定制 worm/getclientiplib 二次开发

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

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

worm/getclientiplib

Composer 安装命令:

composer require worm/getclientiplib

包简介

GetClientIp is a lightweight PHP class for get real/original client IP address, without proxy as opera mini and other.

README 文档

README

GetClientIp is a lightweight PHP class for get real/original client IP address, without proxy as opera mini and other. It uses the specific $_SERVER headers to detect client ip address. Class search valid IPv4 of client.

Composer install

composer require worm/getclientiplib
{
    "require": {
        "worm/getclientiplib": "^1.0"
    }
}

Usage

$getClientIp = new GetClientIp;
$ip = $getClientIp->getClientIp();
$longIp = $getClientIp->getLongClientIp();

Usage with manual data

$getClientIp = new GetClientIp(array( "REMOTE_ADDR"           => "1.2.3.4",
                                      "REMOTE_PORT"           => "",
                                      "SERVER_ADDR"           => "1.1.1.1",
                                      "X_FORWARDED_FOR"       => "2.3.4.5,1.2.3.4, 1.2.3.4" ));
$ip = $getClientIp->getClientIp();
$longIp = $getClientIp->getLongClientIp();

统计信息

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

GitHub 信息

  • Stars: 18
  • Watchers: 2
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固