martinlindhe/php-myip

External IP providers

0.2.1 2015-05-20 13:02 UTC

This package is auto-updated.

Last update: 2024-12-23 03:31:38 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();