slvler/whoami

ip-api.com API wrapper for Laravel

v1.1.2 2024-10-20 21:23 UTC

This package is auto-updated.

Last update: 2024-10-20 21:42:14 UTC


README

tests Latest Stable Version Latest Unstable Version License Total Downloads

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.