Download the PHP package kubrey/geoservice without Composer
On this page you can find all versions of the php package kubrey/geoservice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kubrey/geoservice
More information about kubrey/geoservice
Files in kubrey/geoservice
Download kubrey/geoservice
More information about kubrey/geoservice
Files in kubrey/geoservice
Vendor kubrey
Package geoservice
Short Description Geolocation module using multiple free geo services
License MIT
Package geoservice
Short Description Geolocation module using multiple free geo services
License MIT
Please rate this library. Is it a good library?
Informations about the package geoservice
Geo data detection by IP
Searching geo data by IP address
Description
Include several services:
- Maxmind
- Ipgeobase.ru
- Ipinfo.io
- Freegeoip.net
- Geobytes.com
- Telize.com
- Maxmind Legacy(v1)
- IpApi(ip-api.com)
Installation
Add kubrey/geoservice
to your composer.json
OR
If you have no composer, install beforehand:
Run in the project's root:
And then :
Usage
$data
is an instance of GeoObject
, containing these properties:
- countryName
- city
- latitude
- longitude
- zip
- regionName
- countryCode
- isp
To set your own method priority:
To set required geo parameters
To set timeout in milliseconds:
To set timeout for each online service in milliseconds:
Tests
PHPUnit:
All versions of geoservice with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
kubrey/ipgeobase Version *
geoip2/geoip2 Version 0.6.*
kubrey/maxgeo Version *
kubrey/ipgeobase Version *
geoip2/geoip2 Version 0.6.*
kubrey/maxgeo Version *
The package kubrey/geoservice contains the following files
Loading the files please wait ....