PHPackages                             bit64/geonames - 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. [API Development](/categories/api)
4. /
5. bit64/geonames

ActiveLibrary[API Development](/categories/api)

bit64/geonames
==============

GeoNames API library for PHP

00PHP

Since Aug 5Pushed 5y agoCompare

[ Source](https://github.com/bit64co/geonames)[ Packagist](https://packagist.org/packages/bit64/geonames)[ RSS](/packages/bit64-geonames/feed)WikiDiscussions dev-master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

GeoNames Library
================

[](#geonames-library)

This library aims to aggregate the [GeoNames](https://geonames.org/) API as well as compile a locally stored geo database service from the GeoNames data dump.

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

Usage
-----

[](#usage)

```
use Bit64\GeoNames\GeoNamesApi;

$api = new GeoNamesApi([
	'username' => 'demo',
	'lang' => 'en',
]);

$lookup = $api->get([
	'geonameId' => 3369157,
]);

print($lookup['name']);

// Output
Cape Town

```

[Read the documentation](./docs/Docs.md) for more information.

*This library may not be a complete work, as it is going to be continually developed until it meets the requirements for its general intended purpose*

License
-------

[](#license)

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/514c58e7558dc3bcb4b5a488e540f481bdf3ce55eaec3cfaa2d939058ce26213?d=identicon)[bit64](/maintainers/bit64)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/bit64-geonames/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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