2017 © Pedro Peláez
 

library getclientiplib

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

image

worm/getclientiplib

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

  • Saturday, February 11, 2017
  • by Worm
  • Repository
  • 2 Watchers
  • 11 Stars
  • 988 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 10 Versions
  • 37 % Grown

The README.md

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., (*1)

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();

The Versions

11/02 2017

dev-master

9999999-dev https://github.com/worm/GetClientIp

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

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

The Development Requires

by Pevnev Alex

ip ip address ip detect ip detector php ip detect detect ip client

11/02 2017

1.0.7

1.0.7.0 https://github.com/worm/GetClientIp

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

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

The Development Requires

by Pevnev Alex

ip ip address ip detect ip detector php ip detect detect ip client

11/02 2017

1.0.6

1.0.6.0 https://github.com/worm/GetClientIp

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

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

The Development Requires

by Pevnev Alex

ip ip address ip detect ip detector php ip detect detect ip client

11/02 2017

1.0.5

1.0.5.0 https://github.com/worm/GetClientIp

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

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

The Development Requires

by Pevnev Alex

ip ip address ip detect ip detector php ip detect detect ip client

11/02 2017

1.0.4

1.0.4.0 https://github.com/worm/GetClientIp

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

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

The Development Requires

by Pevnev Alex

ip ip address ip detect ip detector php ip detect detect ip client

10/02 2017

1.0.3

1.0.3.0 https://github.com/worm/GetClientIp

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

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

The Development Requires

by Pevnev Alex

ip ip address ip detect ip detector php ip detect detect ip client

10/02 2017

v1.0.2

1.0.2.0 https://github.com/worm/GetClientIp

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

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

The Development Requires

by Pevnev Alex

ip ip address ip detect ip detector php ip detect detect ip client

27/02 2016

1.0.2

1.0.2.0 https://github.com/worm/GetClientIp

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

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

The Development Requires

by Pevnev Alex

ip ip address ip detect ip detector php ip detect detect ip client

27/02 2016

v1.0.1

1.0.1.0 https://github.com/worm/GetClientIp

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

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

The Development Requires

by Pevnev Alex

ip ip address ip detect ip detector php ip detect detect ip client

23/02 2016

1.0.0

1.0.0.0 https://github.com/worm/GetClientIp

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

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

The Development Requires

by Pevnev Alex

ip ip address ip detect ip detector php ip detect detect ip client