LaravelPackages.net
Acme Inc.
Toggle sidebar
alfa-dev-team/abstractapi-geo

A description for abstractapi-geo.

35
0
1.0
About alfa-dev-team/abstractapi-geo

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

abstractapi-geo

Software License Travis Total Downloads

Install

composer require alfa-dev-team/abstractapi-geo

php artisan vendor:publish --provider="AlfaDevTeam\AbstractapiGeo\AbstractapiGeoServiceProvider" --tag="migrations"

Usage

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();

Testing

Run the tests with:

vendor/bin/phpunit
Comments