Skip to content

slvler/whoami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slvler - Ip-api Service

tests Latest Stable Version Latest Unstable Version License

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.