Geolocation From Package
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.