PHPackages                             dmitrymomot/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. [API Development](/categories/api)
4. /
5. dmitrymomot/geocode

AbandonedArchivedLibrary[API Development](/categories/api)

dmitrymomot/geocode
===================

Google Geocoding API for Laravel 4 (fork jcf/geocode with updated guzzle)

1.0.1(10y ago)256MITPHPPHP &gt;=5.4.0

Since May 22Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

Google Geocoding API for Laravel 4
==================================

[](#google-geocoding-api-for-laravel-4)

Fork which requires new version guzzle
--------------------------------------

[](#fork-which-requires-new-version-guzzle)

[![Latest Stable Version](https://camo.githubusercontent.com/3a5ee2caf526de15f090a758986566a08b20e2f18fe612cf7a7b5cd2725a8da1/68747470733a2f2f706f7365722e707567782e6f72672f6a63662f67656f636f64652f762f737461626c652e737667)](https://packagist.org/packages/jcf/geocode) [![Total Downloads](https://camo.githubusercontent.com/d9c4a6edb9e55aecaae4ba08a7cc6f6dd7cfe43f57ba74a468ec6be8b1c67416/68747470733a2f2f706f7365722e707567782e6f72672f6a63662f67656f636f64652f646f776e6c6f6164732e737667)](https://packagist.org/packages/jcf/geocode) [![License](https://camo.githubusercontent.com/1eddcdac2ec771844f04f96c95b2e9db58eb07f9917991175ac995786a0b4aa2/68747470733a2f2f706f7365722e707567782e6f72672f6a63662f67656f636f64652f6c6963656e73652e737667)](https://packagist.org/packages/jcf/geocode)

A simple [Laravel 4](http://four.laravel.com/) service provider for Google Geocoding API.

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

[](#installation)

This package can be installed via [Composer](http://getcomposer.org) by requiring the `jcf/geocode` package in your project's `composer.json`.

```
{
    "require": {
        "dmitrymomot/geocode": "1.0.*"
    }
}
```

Then run a composer update

```
php composer.phar update
```

After updating composer, add the ServiceProvider to the providers array in app/config/app.php

```
'Jcf\Geocode\GeocodeServiceProvider',
```

Add then alias Geocode adding its facade to the aliases array in the same file :

```
'Geocode' => 'Jcf\Geocode\Facades\Geocode'
```

Usage
-----

[](#usage)

You can find data from addresses:

```
$response = Geocode::make()->address('1 Infinite Loop');

if ($response) {
    echo $response->latitude();
    echo $response->longitude();
    echo $response->formattedAddress();
    echo $response->locationType();
}

// Output
// 37.331741
// -122.0303329
// 1 Infinite Loop, Cupertino, CA 95014, USA
// ROOFTOP
```

Or from latitude/longitude:

```
$response = Geocode::make()->latLng(40.7637931,-73.9722014);
if ($response) {
    echo $response->latitude();
    echo $response->longitude();
    echo $response->formattedAddress();
    echo $response->locationType();
}

// Output
// 40.7637931
// -73.9722014
// 767 5th Avenue, New York, NY 10153, USA
// ROOFTOP
```

If you need other data rather than formatted address, latitude, longitude or location type, you can use the `raw()` method:

```
$response = Geocode::make()->latLng(40.7637931,-73.9722014);
if ($response) {
    echo $response->raw()->address_components[8]['types'][0];
    echo $response->raw()->address_components[8]['long_name'];
}

// Output
// postal_code
// 10153
```

That's it. Pull requests are welcome.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~276 days

Total

3

Last Release

3817d ago

Major Versions

0.0.1 → 1.0.02014-07-19

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

1.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc65d100707fbcb8bd589b361245b702ade74480ccfd2a963b1f1672484f2e28?d=identicon)[dmitrymomot](/maintainers/dmitrymomot)

---

Top Contributors

[![jotafurtado](https://avatars.githubusercontent.com/u/748350?v=4)](https://github.com/jotafurtado "jotafurtado (12 commits)")[![dmitrymomot](https://avatars.githubusercontent.com/u/2080279?v=4)](https://github.com/dmitrymomot "dmitrymomot (3 commits)")[![dave-miller](https://avatars.githubusercontent.com/u/1550539?v=4)](https://github.com/dave-miller "dave-miller (1 commits)")

---

Tags

apilaravelgeocodingaddressgooglelatitudelongitudegeocode

### Embed Badge

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

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

###  Alternatives

[jcf/geocode

Google Geocoding API for Laravel

48160.5k](/packages/jcf-geocode)[jackmartin/laravel-yandex-geocode

Simply service laravel Yandex Geocoding

1016.6k](/packages/jackmartin-laravel-yandex-geocode)[1001pharmacies/geolocation-bundle

Provides an abstraction layer for geocoding services.

116.8k](/packages/1001pharmacies-geolocation-bundle)

PHPackages © 2026

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