Download the PHP package adiesel82/geoservice-laravel without Composer
On this page you can find all versions of the php package adiesel82/geoservice-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adiesel82/geoservice-laravel
More information about adiesel82/geoservice-laravel
Files in adiesel82/geoservice-laravel
Download adiesel82/geoservice-laravel
More information about adiesel82/geoservice-laravel
Files in adiesel82/geoservice-laravel
Vendor adiesel82
Package geoservice-laravel
Short Description SypexGeo Laravel 5.5 service
License MIT
Package geoservice-laravel
Short Description SypexGeo Laravel 5.5 service
License MIT
Please rate this library. Is it a good library?
Informations about the package geoservice-laravel
adiesel82/geoservice-laravel
GeoIP Laravel 5.5 service
For the current moment SyperGeo service implemented only: https://sypexgeo.net
Plaese follow next steps for install:
1) add dependence:
2) add next items into config/app.php
3) publish config with artisan:
Type 0 to publish all or a digit near ADiesel82\GeoService\GeoServiceProvider
It is 8 in example below and hit enter.
As result you can find geo.php in the config folder.
For the current moment SyperGeo service supported only.
Ready
Usage example:
$result = \Geo::get(\request()->ip());
dd($result);
As result:
{#129 ▼
+"city": {#128 ▼
+"id": 524901
+"lat": 55.75222
+"lon": 37.61556
+"name_ru": "Москва"
+"name_en": "Moscow"
}
+"country": {#130 ▼
+"id": 185
+"iso": "RU"
}
}
Auto update database with composer
"post-install-cmd": [
"ADiesel82\\GeoService\\ComposerScripts::postInstall"
],
"post-update-cmd": [
"ADiesel82\\GeoService\\ComposerScripts::postUpdate"
],
All versions of geoservice-laravel with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package adiesel82/geoservice-laravel contains the following files
Loading the files please wait ....