Download the PHP package bonvga/geoip2 without Composer
On this page you can find all versions of the php package bonvga/geoip2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bonvga/geoip2
More information about bonvga/geoip2
Files in bonvga/geoip2
Download bonvga/geoip2
More information about bonvga/geoip2
Files in bonvga/geoip2
Vendor bonvga
Package geoip2
Short Description Maxmind GeoIP 2 toolkit for Symfony 2
License LGPL 3.0
Package geoip2
Short Description Maxmind GeoIP 2 toolkit for Symfony 2
License LGPL 3.0
Please rate this library. Is it a good library?
Informations about the package geoip2
Bonvga/Geoip2Bundle
This Symfony 2 bundle is a helper for Maxmind Geocity2 database installation.
Requirements
You need the Curl binary package. (https://curl.haxx.se/)
Installation
-
Add the Geoip2Bundle to your dependencies:
// composer.json { // ... "require": { // ... "bonvga/geoip2": "1.*" } }
-
Use Composer to download and install the Geoip2Bundle:
$ php composer.phar update bonvga/geoip2
-
Register the bundle in your application:
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Bonvga\Bundle\Geoip2Bundle\Geoip2Bundle() ); }
-
Optional, updating Maxmind Geocity2 database during composer
// composer.json "scripts": { "post-install-cmd": [ "Bonvga\\Bundle\\Geoip2Bundle\\Composer\\ScriptHandler::installDatabase" ], "post-update-cmd": [ "Bonvga\\Bundle\\Geoip2Bundle\\Composer\\ScriptHandler::installDatabase" ] }, // or with command $ php app/console bonvga:geoip2_database_update
Usage
With the geoip2/geoip2 bundle :
// composer requirement
"geoip2/geoip2": "~2.0"
Or see https://packagist.org/packages/geoip2/geoip2
// PHP sample
use Bonvga\Bundle\Geoip2Bundle\Lib\Geoip2Manager;
use GeoIp2\Database\Reader;
$reader = new Reader(Geoip2Manager::getGeoip2LiteCityDatabasePath());
All versions of geoip2 with dependencies
PHP Build Version
Package Version
The package bonvga/geoip2 contains the following files
Loading the files please wait ....