schafferer/geo-ip-bundle

gets country from user ip

1.1.30 2015-10-28 14:54 UTC

README

Bundle includes custom changes for comment module.

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require "geo-ip-bundle": "~6.0"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation. Be sure to adjust the version information "~6.0" to the actual version you need.

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...

public function registerBundles()
{
    $bundles = array(
        // ...
        new \Schafferer\UserProfileOptionsBundle\GeoIpBundle()
    );
}