PHPackages                             bonvga/geoip2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bonvga/geoip2

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

bonvga/geoip2
=============

Maxmind GeoIP 2 toolkit for Symfony 2

1.1(9y ago)125.9k↓39.6%LGPL 3.0PHP

Since Sep 15Pushed 9y ago2 watchersCompare

[ Source](https://github.com/bonvga/geoip2)[ Packagist](https://packagist.org/packages/bonvga/geoip2)[ RSS](/packages/bonvga-geoip2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Bonvga/Geoip2Bundle
===================

[](#bonvgageoip2bundle)

This Symfony 2 bundle is a helper for Maxmind Geocity2 database installation.

Requirements
------------

[](#requirements)

You need the Curl binary package. ()

Installation
------------

[](#installation)

1. Add the Geoip2Bundle to your dependencies:

    ```
    // composer.json

    {
       // ...
       "require": {
           // ...
           "bonvga/geoip2": "1.*"
       }
    }

    ```
2. Use Composer to download and install the Geoip2Bundle:

    ```
    $ php composer.phar update bonvga/geoip2

    ```
3. Register the bundle in your application:

    ```
    // app/AppKernel.php

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Bonvga\Bundle\Geoip2Bundle\Geoip2Bundle()
        );
    }

    ```
4. 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
-----

[](#usage)

With the geoip2/geoip2 bundle :

```
    // composer requirement
    "geoip2/geoip2": "~2.0"

```

Or see

```
    // PHP sample

    use Bonvga\Bundle\Geoip2Bundle\Lib\Geoip2Manager;
    use GeoIp2\Database\Reader;

    $reader = new Reader(Geoip2Manager::getGeoip2LiteCityDatabasePath());

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~252 days

Total

2

Last Release

3646d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/763c2b85199dfddde744fba6907acd0c2e31a6411e5085349f8f096f0507fa8a?d=identicon)[bonvga](/maintainers/bonvga)

---

Top Contributors

[![bonvga](https://avatars.githubusercontent.com/u/4527191?v=4)](https://github.com/bonvga "bonvga (1 commits)")

---

Tags

geoipgeolocationmaxmind

### Embed Badge

![Health badge](/badges/bonvga-geoip2/health.svg)

```
[![Health](https://phpackages.com/badges/bonvga-geoip2/health.svg)](https://phpackages.com/packages/bonvga-geoip2)
```

###  Alternatives

[torann/geoip

Support for multiple Geographical Location services.

2.2k14.2M76](/packages/torann-geoip)[ipip/db

IPIP.net officially supported IP database ipdb format parsing library

139204.2k6](/packages/ipip-db)[pulkitjalan/ip-geolocation

IP Geolocation Wrapper with Laravel Support

89164.9k1](/packages/pulkitjalan-ip-geolocation)[adrianorosa/laravel-geolocation

Laravel Geo Location package to get details for a given IP Address

6593.3k1](/packages/adrianorosa-laravel-geolocation)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[tabgeo/country

geoip (only countries) php library (http://tabgeo.com)

1158.8k](/packages/tabgeo-country)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
