jmrashed/geolocation

geolocation package will provide user location

v1.0.6 2022-04-06 18:47 UTC

This package is auto-updated.

Last update: 2024-09-07 00:12:22 UTC


README

Issues Stars License Forks

Laravel package to get the details about Region, City and Country for a given IP Address. It also provides the details about the location of the user.

Introduction

  • geolocation package will provide user location information.
  • It will provide user location information.

Installation

    composer require jmrashed/geolocation

Published package

    php artisan vendor:publish --provider="Jmrashed\Geolocation\GeolocationServiceProvider" --tag='geolocation'

Usage

 $geolocation->getLocation($latitude, $longitude);
  $geolocation->getLocationByIp($ip);

Example

    $geolocation = new GeolocationController();
    $geolocation->getLocation($latitude, $longitude);

License

MIT

Author

Rashed Zaman

Repository

https://github.com/jmrashed/geolocation

Contributors

Rashed Zaman

Changelog

    v1.0.0
        - Initial release.