geolocation / freegeoip
ZF2 Geolocation module
Installs: 237
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/geolocation/freegeoip
Requires
- php: >=5.3.3
- zendframework/zendframework: 2.*
This package is not auto-updated.
Last update: 2025-10-21 08:55:34 UTC
README
Geolocation - ZF2 Module
A zend framework 2 module for geolocation.
Installation
Main Setup
By cloning project
-
This module is available on Packagist. In your project's
composer.jsonuse:{ "require": { "php": ">=5.3.3", "zendframework/zendframework": "*", "geolocation/freegeoip": "dev-master" } -
Or clone this project into your
./vendor/directory.
Usage:
-
In the controller
$geoloc = $this->getServiceLocator()->get('Geolocation\Service\Geolocation'); $geoloc->setIp( $ip); $result = $geoloc->getLocation();