oriceon / ip
Get the public IP in a quick way
1.0.2
2021-07-28 16:22 UTC
Requires
- php: ^7.1|^8.0
This package is auto-updated.
Last update: 2024-11-16 12:48:13 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" }