Get the public IP in a quick way

1.0.1 2019-11-29 11:15 UTC

This package is auto-updated.

Last update: 2021-09-28 16:41:11 UTC


README

Get the current user IP in a quick way:

use Oriceon\Ip;
<?php
$ip = Ip::get();
echo "Hello, your ip is {$ip}";
?>

Install using composer. Package name is oriceon/ip.

Add this to composer.json

"require": {
        "oriceon/ip": "~1.0"
    }