PHPackages                             grayloon/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. grayloon/geonames

AbandonedArchivedLibrary[API Development](/categories/api)

grayloon/geonames
=================

PHP package for accessing the geonames.org API

1.0.0(4y ago)04.7kMITPHPPHP ^8.0

Since Mar 11Pushed 4y agoCompare

[ Source](https://github.com/grayloon/geonames)[ Packagist](https://packagist.org/packages/grayloon/geonames)[ Docs](https://github.com/grayloon/geonames)[ RSS](/packages/grayloon-geonames/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (14)Versions (4)Used By (0)

PHP GeoNames API
================

[](#php-geonames-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/84d81e25e0697105ed146364f6fe63934e1978fb571e71d4ae70f4e0b566247d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f677261796c6f6f6e2f67656f6e616d65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grayloon/geonames)[![Total Downloads](https://camo.githubusercontent.com/5e770d993bcce90385a6c0d1ce7bddd41c20a4b19ec1b42721c2eaac75d7d6b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f677261796c6f6f6e2f67656f6e616d65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grayloon/geonames)

A simple Object Oriented wrapper for GeoNames API, written with PHP.

> This project is a work in progress.

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

[](#requirements)

- PHP &gt;= 7.1
- GeoNames Account
- (optional) PHPUnit to run tests.

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

[](#installation)

You can install the package via composer:

```
composer require grayloon/geonames
```

Usage
-----

[](#usage)

An overview of available API parameters for each endpoint is [available here](http://www.geonames.org/export/ws-overview.html).

```
    $geonames = new \Grayloon\Geonames('your_username');

    $result = $geonames->postalCodeSearch([
        'country' => 'US',
        'postalcode' => '47579',
    ]);
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Gray Loon Marketing Group Developers](https://github.com/grayloon)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~620 days

Total

2

Last Release

1635d ago

Major Versions

0.1 → 1.0.02021-11-22

PHP version history (2 changes)0.1PHP ^7.1

1.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5503346?v=4)[Gray Loon](/maintainers/grayloon)[@grayloon](https://github.com/grayloon)

---

Top Contributors

[![ahinkle](https://avatars.githubusercontent.com/u/17038330?v=4)](https://github.com/ahinkle "ahinkle (4 commits)")[![treetop1500](https://avatars.githubusercontent.com/u/5067748?v=4)](https://github.com/treetop1500 "treetop1500 (2 commits)")

---

Tags

apigeonamesgrayloongeo locator

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[m4tthumphrey/php-gitlab-api

GitLab API v4 client for PHP

9485.4M64](/packages/m4tthumphrey-php-gitlab-api)[dhope0000/lxd

PHP-based API wrapper for LXD REST API.

136.2k](/packages/dhope0000-lxd)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)

PHPackages © 2026

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