martinlindhe/php-myip

External IP providers

0.2.1 2015-05-20 13:02 UTC

This package is auto-updated.

Last update: 2025-07-23 05:04:30 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();