2017 © Pedro Peláez
 

library freegeoip

ZF2 Geolocation module

image

geolocation/freegeoip

ZF2 Geolocation module

  • Saturday, August 16, 2014
  • by ludal74
  • Repository
  • 1 Watchers
  • 3 Stars
  • 221 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

zf2-geolocation

Geolocation - ZF2 Module

A zend framework 2 module for geolocation., (*1)

Installation

Main Setup

By cloning project

  1. This module is available on Packagist. In your project's composer.json use:, (*2)

    {   
        "require": {
            "php": ">=5.3.3",
            "zendframework/zendframework": "*",
            "geolocation/freegeoip": "dev-master"
    }
    
  2. Or clone this project into your ./vendor/ directory.

Usage:, (*3)

  1. In the controller, (*4)

    $geoloc = $this->getServiceLocator()->get('Geolocation\Service\Geolocation'); 
    $geoloc->setIp( $ip);                                        
    $result = $geoloc->getLocation();                                          

The Versions

16/08 2014

dev-master

9999999-dev https://github.com/ludal74/Geolocation

ZF2 Geolocation module

  Sources   Download

MIT

The Requires

 

geolocation zf2 ip free