Looking to hire Laravel developers? Try LaraJobs

echoip-laravel maintained by sicaboy

Description
Laravel Client for echoip
Author
Last update
2026/02/14 07:35 (dev-main)
License
Downloads
581

Comments
comments powered by Disqus

Laravel Client for echoip

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Laravel Client for echoip

Installation

You can install the package via composer:

composer require sicaboy/echoip-laravel

You can publish the config file with:

php artisan vendor:publish --tag="echoip-laravel-config"

This is the contents of the published config file:

return [
    'api_key' => env('ECHOIP_API_KEY'),
    'api_url' => env('ECHOIP_API_URL', 'https://echoip.yourdomain.com'),
];

Usage

use Sicaboy\EchoipLaravel\Facades\Echoip;

EchoipLaravel::getInfo('1.1.1.1');
EchoipLaravel::getInfo(request()->ip())

You will get the country code of the IP address.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.