slvler / whoami
ip-api.com API wrapper for Laravel
v1.1.2
2024-10-20 21:23 UTC
Requires
- php: ^8.0.2
- guzzlehttp/guzzle: ^7.2
- illuminate/support: ^9.0 || ^10.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.6
- orchestra/testbench: ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0
- phpunit/phpunit: ^8.4 || ^9.3.3 || ^10.0
README
This package provides a convenient wrapper to the Ip API for Laravel applications.
Requirements
- PHP 8.0+
- Laravel 10.x | 9.x
Installation
To install this package tou can use composer:
composer require slvler/whoami
Usage
Import the facade in your class.
use Whoami;
send a request to get ip information details
Whoami::get("127.0.0.1")->result();
send a request to filter some details in the ip information
Whoami::get("127.0.0.1")->filter(['status','message','country','zip','query'])->result();
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.