alfa-dev-team/abstractapi-geo is a Laravel package for a description for abstractapi-geo..
It currently has 0 GitHub stars and 35 downloads on Packagist (latest version 1.0).
Install it with composer require alfa-dev-team/abstractapi-geo.
Discover more Laravel packages by alfa-dev-team
or browse all Laravel packages to compare alternatives.
Last updated
composer require alfa-dev-team/abstractapi-geo
php artisan vendor:publish --provider="AlfaDevTeam\AbstractapiGeo\AbstractapiGeoServiceProvider" --tag="migrations"
Add parameter ABSTRACTAPI_IP_GEOLOCATION_API_KEY= to the .env file.
You can then use Location::getGeoByIp({ip}) to retrieve the location object.
After you can call follow method:
getCountry();getCity();getСoordinates();Run the tests with:
vendor/bin/phpunit