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 2w ago

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 36% 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

3044d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35288540?v=4)[Jenson](/maintainers/rebing0512)[@rebing0512](https://github.com/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

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

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

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

Geo-related tools PHP 7+ library

18122.1k1](/packages/laravie-geotools)[beste/latlon-geohash

Gustavo Niemeyer's geocoding system

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

This package geohash for Laravel 5 support.

1128.4k](/packages/latrell-geohash)[marvinosswald/filament-input-select-affix

this input enables you to render a select next to an input in a seamless fashion

26132.6k1](/packages/marvinosswald-filament-input-select-affix)

PHPackages © 2026

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