PHPackages                             rebing0512/geohashs - 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. rebing0512/geohashs

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

rebing0512/geohashs
===================

Geohash library for php

v1.1.0(8y ago)012MITPHPPHP &gt;=5.3.0

Since Feb 28Pushed 8y agoCompare

[ Source](https://github.com/rebing0512/geohashs)[ Packagist](https://packagist.org/packages/rebing0512/geohashs)[ Docs](https://github.com/rebing0512/geohashs)[ RSS](/packages/rebing0512-geohashs/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

geohash
=======

[](#geohash)

### Usage

[](#usage)

```
use Rebing0512\Geohashs;

$length = 6;

$geohash = new Geohash();

$hash = substr($geohash->encode('latitude','longitude'), 0, $length);

$box = $geohash->neighbors($hash);

$box[] = $hash;

$in_str = "'".implode("','", $box)."'";

// PHP
// $sql = "SELECT FROM `table` WHERE LEFT(geohash, {$length}) IN ($in_str)";
// echo $sql;

// OUTPUT
// SELECT FROM `table` WHERE LEFT(geohash, 6) IN ('xxxxxx','aaaaaa', ......)
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

2995d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90188d269db63db804b89105880500732001a39e29842dc3b08d5ab7a488c379?d=identicon)[rebing0512](/maintainers/rebing0512)

---

Tags

geohash

### Embed Badge

![Health badge](/badges/rebing0512-geohashs/health.svg)

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

###  Alternatives

[lvht/geohash

geohash like python-geohash

77580.2k1](/packages/lvht-geohash)[saikiran/geohash

Geohash Algorithm to encode geographic coordinates to a string of letters and digits

44456.6k3](/packages/saikiran-geohash)[laravie/geotools

Geo-related tools PHP 7+ library

19105.4k1](/packages/laravie-geotools)[camcima/php-geohash

Refactored GeoHash package

1074.0k](/packages/camcima-php-geohash)[beste/latlon-geohash

Gustavo Niemeyer's geocoding system

1051.7k](/packages/beste-latlon-geohash)[latrell/geohash

This package geohash for Laravel 5 support.

1128.3k](/packages/latrell-geohash)

PHPackages © 2026

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