PHPackages                             brawcks/geoname-bundle - 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. brawcks/geoname-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

brawcks/geoname-bundle
======================

Symfony GeoNameBundle

v2.1.3(5y ago)020MITPHPPHP &gt;=5.5.9

Since Jan 15Pushed 5y agoCompare

[ Source](https://github.com/Brawcks/geoname-bundle)[ Packagist](https://packagist.org/packages/brawcks/geoname-bundle)[ Docs](https://github.com/bordeux/geoname-bundle)[ RSS](/packages/brawcks-geoname-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (10)Versions (13)Used By (0)

Geonames Bundle
===============

[](#geonames-bundle)

[![Build Status](https://camo.githubusercontent.com/00ea8b7d1d42d99746e62a9b0ddd709c0af50def0529a3404da6dc596644545a/68747470733a2f2f7472617669732d63692e6f72672f626f72646575782f67656f6e616d652d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bordeux/geoname-bundle) [![Coverage Status](https://camo.githubusercontent.com/7252af04431a3812716de9006309948652cdfb5fc98933a62f1d6ec1d39adda0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f626f72646575782f67656f6e616d652d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/bordeux/geoname-bundle?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/002a4bff7e585aee8cdb9ee69db566fd57cc1957deb9ea519cc47cd0f32a0bdf/68747470733a2f2f706f7365722e707567782e6f72672f626f72646575782f67656f6e616d652d62756e646c652f76657273696f6e)](https://packagist.org/packages/bordeux/geoname-bundle)

CREDITS \[IMPORTANT\]
=====================

[](#credits-important)

All the work was originaly done by Krzysztof Bednarczyk . This package is a fork to get a fast fix on error happening on symfony 5.

Introduction
============

[](#introduction)

Provides access to the data exported by [GeoNames.org](http://geonames.org) into [Symfony 2](http://symfony.com) and [Symfony 3](http://symfony.com)applications.

What is [geonames.org](http://geonames.org)
-------------------------------------------

[](#what-is-geonamesorg)

From the geonames.org website:

> The GeoNames geographical database covers all countries and contains over eight million placenames that are available for download free of charge.

When to use this bundle
-----------------------

[](#when-to-use-this-bundle)

Most useful application for this bundle is to normalize the geograhical information stored in your database such as Countries, States and Cities. Thanks to the extensive [geonames.org](http://geonames.org) data almost all cities, towns and suburbs are covered worldwide.

Features
--------

[](#features)

- Imports the following geonames.org data:

    - Countries
    - Timezones
    - States &amp; Provences
    - Cities, Towns, Suburbs, Villages etc.
- Provides the following data store implementations:

    - Doctrine ORM

Installation
============

[](#installation)

1. Install the bundle using composer:

    ```
    composer require bordeux/geoname-bundle
    ```
2. Add the bundle to your `AppKernel.php`

    ```
    // AppKernel::registerBundles()
    $bundles = array(
        // ...
            new Bordeux\Bundle\GeoNameBundle\BordeuxGeoNameBundle(),
        // ...
    );
    ```

Install or update database schema
---------------------------------

[](#install-or-update-database-schema)

Execute the migrations using the supplied migration configuration

```
    php bin/console doctrine:schema:update --force
```

Import the data
---------------

[](#import-the-data)

**Note** that importing the data from the remote geonames.org repository involves downloading almost 350 MB data from [geonames.org](http://geonames.org).

The following commands can be used in sequence to load all supported data from the [geonames.org](http://geonames.org) export ()

### Import data

[](#import-data)

Loads a list of all data from [geonames.org](http://geonames.org)

```
    php bin/console bordeux:geoname:import  --env=prod
```

### Options

[](#options)

```
Usage:
  bordeux:geoname:import [options]

Options:
  -a, --archive[=ARCHIVE]                   Archive to GeoNames [default: "http://download.geonames.org/export/dump/allCount
ries.zip"]
  -t, --timezones[=TIMEZONES]               Timezones file [default: "http://download.geonames.org/export/dump/timeZones.txt
"]
  -o, --download-dir[=DOWNLOAD-DIR]         Download dir
  -h, --help                                Display this help message
  -q, --quiet                               Do not output any message
  -V, --version                             Display this application version
      --ansi                                Force ANSI output
      --no-ansi                             Disable ANSI output
  -n, --no-interaction                      Do not ask any interactive question
  -e, --env=ENV                             The environment name [default: "dev"]
      --no-debug                            Switches off debug mode
  -a1, --admin1-codes[=ADMIN1-CODES]        Admin 1 Codes file [default: "http://download.geonames.org/export/dump/admin1Cod
esASCII.txt"]
  -a2, --admin2-codes[=ADMIN2-CODES]        Admin 2 Codes file [default: "http://download.geonames.org/export/dump/admin2Cod
es.txt"]
  -lc, --languages-codes[=LANGUAGES-CODES]  Admin 2 Codes file [default: "http://download.geonames.org/export/dump/iso-langu
agecodes.txt"]
  -v|vv|vvv, --verbose                      Increase the verbosity of messages: 1 for normal output, 2 for more verbose outp
ut and 3 for debug

Help:
  Import GeoNames

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 95.1% 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 ~147 days

Recently: every ~77 days

Total

11

Last Release

1931d ago

Major Versions

v1.5 → v2.02020-03-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28635328?v=4)[vincent\_cfn](/maintainers/brawcks)[@Brawcks](https://github.com/Brawcks)

---

Top Contributors

[![bordeux](https://avatars.githubusercontent.com/u/784536?v=4)](https://github.com/bordeux "bordeux (78 commits)")[![Brawcks](https://avatars.githubusercontent.com/u/28635328?v=4)](https://github.com/Brawcks "Brawcks (3 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (1 commits)")

---

Tags

geonamegeonameid

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brawcks-geoname-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/brawcks-geoname-bundle/health.svg)](https://phpackages.com/packages/brawcks-geoname-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

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