PHPackages                             davidvandertuijn/geocode - 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. davidvandertuijn/geocode

ActiveLibrary

davidvandertuijn/geocode
========================

Geocode

4.3(4y ago)02.7k↓100%MITPHPPHP &gt;=7.1.0

Since Jun 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/davidvandertuijn/geocode)[ Packagist](https://packagist.org/packages/davidvandertuijn/geocode)[ RSS](/packages/davidvandertuijn-geocode/feed)WikiDiscussions master Synced 1mo ago

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

Geocode
=======

[](#geocode)

[![Total Downloads](https://camo.githubusercontent.com/176b9d7d9472ccf0cf366f9ac91decb799aedc4f844f85981a56b99107f80776/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f67656f636f64652f642f746f74616c2e737667)](https://packagist.org/packages/davidvandertuijn/geocode)[![Latest Stable Version](https://camo.githubusercontent.com/de368fc9374967b9f3ed9dfdfc202cf81ab0aa81b8a735d42637688d5139bdee/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f67656f636f64652f762f737461626c652e737667)](https://packagist.org/packages/davidvandertuijn/geocode)[![License](https://camo.githubusercontent.com/ee1f56fe62d335d63c4818a85e501fd0901fecc2e3c522302aff475598c4b538/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f67656f636f64652f6c6963656e73652e737667)](https://packagist.org/packages/davidvandertuijn/geocode)

[![Geocode](https://camo.githubusercontent.com/049beba2a7b9e505f44586aa16ee1e087948b8d4940a15d609b4d94690f7de08/68747470733a2f2f63646e2e646176696476616e6465727475696a6e2e6e6c2f6769746875622f67656f636f64652e706e67)](https://camo.githubusercontent.com/049beba2a7b9e505f44586aa16ee1e087948b8d4940a15d609b4d94690f7de08/68747470733a2f2f63646e2e646176696476616e6465727475696a6e2e6e6c2f6769746875622f67656f636f64652e706e67)

Geocoding is the process of converting addresses, place names, or other location identifiers into geographic coordinates (latitude and longitude). This essential functionality enables various applications and services to accurately locate and visualize locations on a map.

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/davidvandertuijn)

Register an API Key
-------------------

[](#register-an-api-key)

Your application's API key. This key identifies your application for purposes of quota management. [Learn how to get a key.](https://developers.google.com/maps/documentation/geocoding/get-api-key)

Install
-------

[](#install)

```
composer require davidvandertuijn/geocode

```

Usage
-----

[](#usage)

```
use Davidvandertuijn\Geocode;
```

**Request**

```
$geocode = new Geocode();

$geocode->setApiKey(''); // Your application's API key.
$geocode->setAddress('Westblaak 180, 3012 KN, Rotterdam, NL');

if ($geocode->request()) {
    $latitude = $geocode->getLatitude(); // 51.9163212
    $longitude = $geocode->getLongitude(); // 4.475754
}
```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~288 days

Recently: every ~51 days

Total

7

Last Release

1525d ago

Major Versions

1.0 → 2.02019-05-26

2.0 → 3.02021-08-16

3.0 → 4.02022-03-06

PHP version history (2 changes)1.0PHP &gt;=5.3.0

2.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d8904bedce7fb2ec131c0d18c13aeaa82b00af2fd03ebe099886ac462b1d29e?d=identicon)[davidvandertuijn](/maintainers/davidvandertuijn)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/davidvandertuijn-geocode/health.svg)

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

PHPackages © 2026

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