martinlindhe/php-myip

External IP providers

0.2.1 2015-05-20 13:02 UTC

This package is auto-updated.

Last update: 2024-11-23 03:22:31 UTC


README

Small php library to query current external IP

Installation

In composer.json

{
    "require": {
        "martinlindhe/php-myip": "~0.2"
    }
}

Usage

$ip = MartinLindhe\MyIp\IpProvider\IpProvider::factory()
    ->getIPv4();