martinlindhe/php-myip

External IP providers

0.2.1 2015-05-20 13:02 UTC

This package is auto-updated.

Last update: 2024-08-23 02:47:52 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();