sfDoctrineIpGeolocPlugin - 0.1.2

Lookup a country code from an IP address from your own database.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source | Show as Markdown

sfDoctrineIpGeolocPlugin

Introduction

The plugin lets you lookup country codes from IP addresses. It is a combination of sfIpGeolocHelperPlugin (http://www.symfony-project.org/plugins/sfIpGeolocHelperPlugin) and the old sfIp2Country plugin (http://trac.symfony-project.org/wiki/sfIp2Country).

It is also using Doctrine.

It doesn't do anything very clever, just provides you with a two letter country code. The rest is up to you :)

Installation

Install the plugin like usual. You will also need to load in some data for the IP lookups.

You can get that from: http://software77.net/cgi-bin/ip-country/geo-ip.pl

There is an example shell script included that could be used to load this automatically.