DEV Community

Cover image for How to Get Location from IP in Laravel
Hamidreza Hassani
Hamidreza Hassani

Posted on

How to Get Location from IP in Laravel

Hi Guys
some weeks age i had been working on my Project and i had to get location from client's ip . so I searched in github and Packagist for a package that can get location from IP but there is no one . so I decided to develop a package with name laravel-ip.
this Package can get location by 3 Drivers:

and also You can Block some clients by ip,country and whatever you want and you can choose what ips can access to your site (I added this Feature for Pepole who deploy their Project on host and don't wanna someone see their website).

as I am lazy 😅😅 and i become tired to write all my README.md here Please see my github repository .

This is my first Package and i will be happy if you downlaod it and tell me it's Bugs if you found one

https://github.com/hamidreza2005/laravel-ip

Top comments (0)