martinlindhe/php-myip

外部IP提供者

0.2.1 2015-05-20 13:02 UTC

This package is auto-updated.

Last update: 2024-09-23 03:01:30 UTC


README

一个用于查询当前外部IP的小型php库

安装

在composer.json中

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

使用方法

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