PHPackages                             cobak78/geohash - 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. cobak78/geohash

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

cobak78/geohash
===============

A geohash class to get some interesting data

0.1.1(9y ago)030GNUPHPPHP &gt;=7.0

Since Mar 22Pushed 9y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d22b76c12345e7f8be20d524959e2f075c8aadf5373dbdf58fd35cbfd6166b00/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f62616b37382f67656f686173682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cobak78/geohash/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/8a10032847c64c563422b93689c27c6d904d26257386d9fb10bebc9c16b113ad/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f62616b37382f67656f686173682f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cobak78/geohash/?branch=master)[![Build Status](https://camo.githubusercontent.com/c3791ccece5bcc1a330be9ae3cd33a279c7c49a432dbfaceb65c7804b8e6a10b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f62616b37382f67656f686173682f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cobak78/geohash/build-status/master)[![Code Climate](https://camo.githubusercontent.com/133a6f22ab94277c2ddbe5f1bc9f1b9ef0a740acb6c1e99004f5826620d5fa0f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f636f62616b37382f67656f686173682f6261646765732f6770612e737667)](https://codeclimate.com/github/cobak78/geohash)

geohash
=======

[](#geohash)

A geohash library to get some usefull data

#### Install via composer:

[](#install-via-composer)

```
composer require cobak78/geohash

```

#### Docker

[](#docker)

Geohash includes a base image with test dependencies installed in. Use docker-compose file to stand up a fpm container with the app code mounted.

#### Usage

[](#usage)

use library to get:

```
1. Distance between two geo-located points in Km, Miles and Nautic miles:
    - pass _lat, lon, lat, lon_ and _unit_ parameters to function.

2. Minimum geohash precision for a given geoBound array and the number of squares you want to divide it.
    - pass an array like _[ top_left => [ lat => x, lon => y ], bottom_right => [ lat => x, lon => y ]_.
    - pass the number of squares, it has to be multiple of two.
    - Function will return the minimal geohash precision (from 1 to 12) who can contain every square.

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.2% 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 ~0 days

Total

2

Last Release

3432d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15340473?v=4)[Jaime](/maintainers/cobak78)[@cobak78](https://github.com/cobak78)

---

Top Contributors

[![jaimeMerino](https://avatars.githubusercontent.com/u/16133214?v=4)](https://github.com/jaimeMerino "jaimeMerino (16 commits)")[![cobak78](https://avatars.githubusercontent.com/u/15340473?v=4)](https://github.com/cobak78 "cobak78 (4 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

mapsgeohash

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cobak78-geohash/health.svg)

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

###  Alternatives

[cornford/googlmapper

An easy way to integrate Google Maps with Laravel.

465454.4k4](/packages/cornford-googlmapper)[emcconville/google-map-polyline-encoding-tool

A simple class to handle polyline-encoding for Google Maps

1582.4M2](/packages/emcconville-google-map-polyline-encoding-tool)[lvht/geohash

geohash like python-geohash

77612.8k1](/packages/lvht-geohash)[kenguest/services-openstreetmap

More information available at https://pear.php.net/package/Services\_OpenStreetMap

20441.5k](/packages/kenguest-services-openstreetmap)[saikiran/geohash

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

44568.8k3](/packages/saikiran-geohash)[mediawiki/maps

Adds various mapping features to MediaWiki

85155.1k3](/packages/mediawiki-maps)

PHPackages © 2026

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