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

ActiveLibrary[API Development](/categories/api)

sapioweb/geocode
================

PHP geocoding for laravel 5 &amp; 5.1 using Google API

2.0.5(10y ago)12.4k1MITPHPPHP &gt;=5.5.0

Since Dec 1Pushed 7y ago2 watchersCompare

[ Source](https://github.com/SapioBeasley/geocode)[ Packagist](https://packagist.org/packages/sapioweb/geocode)[ Docs](http://localhost)[ RSS](/packages/sapioweb-geocode/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (9)Dependencies (2)Versions (15)Used By (0)

geocode
=======

[](#geocode)

[![Build Status](https://camo.githubusercontent.com/a80e3a4d6650f332d309707f6287173bf1c86eecd7c4a7bcea95b8d89cf5ba2d/68747470733a2f2f7472617669732d63692e6f72672f536170696f426561736c65792f67656f636f64652e737667)](https://travis-ci.org/SapioBeasley/geocode)[![Latest Stable Version](https://camo.githubusercontent.com/1925521afe6c1d460fc7be4b2b5687728dec52db6da9bb101fdb52283403d330/68747470733a2f2f706f7365722e707567782e6f72672f736170696f7765622f67656f636f64652f762f737461626c65)](https://packagist.org/packages/sapioweb/geocode)[![Total Downloads](https://camo.githubusercontent.com/200a6c04e4a2ddee9bc4a07edc62c88aff2e3b7d94c4853a4ed222c90758ad18/68747470733a2f2f706f7365722e707567782e6f72672f736170696f7765622f67656f636f64652f646f776e6c6f616473)](https://packagist.org/packages/sapioweb/geocode)[![Latest Unstable Version](https://camo.githubusercontent.com/f28cfde1405fe593c7d4a6816e933af600d820526d568e78fb075f4deee6121a/68747470733a2f2f706f7365722e707567782e6f72672f736170696f7765622f67656f636f64652f762f756e737461626c65)](https://packagist.org/packages/sapioweb/geocode)[![License](https://camo.githubusercontent.com/fd89275564b3a3385110a31241aa930188887ae692b77886b53d71ae8929078a/68747470733a2f2f706f7365722e707567782e6f72672f736170696f7765622f67656f636f64652f6c6963656e7365)](https://packagist.org/packages/sapioweb/geocode)

PHP Address Geocoding for laravel using Google API

Install
-------

[](#install)

`composer require sapioweb/geocode`

Include `Sapioweb\Geocode\GeocodeServiceProvider::class,` in your `config/app.php`

Usage
-----

[](#usage)

```
use Sapioweb\Geocode\GeoCode;

Route::get('/', function () {

	$geocode = new Geocode;

	$address = '1600 Wigwam Pkwy, Henderson, NV 89074';

	$geocode = $geocode->getCoordinates($address);

	return view('welcome')->with(['geocode' => $geocode]);
});
```

Pull Latitude: `$geocode['geometry']['location']['lat']`Pull Longitude: `$geocode['geometry']['location']['lng']`

### License

[](#license)

This software is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT). For questions please email  or  or visit [Sapioweb.com](https://sapioweb.com/) to learn more and get in contact

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 97.7% 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 ~18 days

Recently: every ~3 days

Total

9

Last Release

3718d ago

Major Versions

1.0.2 → 2.0.02015-12-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8516439?v=4)[Andreas Beasley](/maintainers/SapioBeasley)[@SapioBeasley](https://github.com/SapioBeasley)

---

Top Contributors

[![SapioBeasley](https://avatars.githubusercontent.com/u/8516439?v=4)](https://github.com/SapioBeasley "SapioBeasley (42 commits)")[![cshireman](https://avatars.githubusercontent.com/u/508935?v=4)](https://github.com/cshireman "cshireman (1 commits)")

---

Tags

apilaravelgoogleservice providergeocodeservice providersbeasleysapioweb

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jcf/geocode

Google Geocoding API for Laravel

48162.2k](/packages/jcf-geocode)[hosseinhezami/laravel-gemini

A production-ready Laravel package to integrate with the Google Gemini API. Supports text, image, video, audio, long-context, structured output, files, caching, function-calling and understanding capabilities.

13913.3k1](/packages/hosseinhezami-laravel-gemini)[mbarwick83/shorty

Google Url Shortener API Package for Laravel 5.1

31204.9k](/packages/mbarwick83-shorty)[gemini-api-php/laravel

Gemini API client for Laravel

8916.9k](/packages/gemini-api-php-laravel)[ozankurt/google-analytics

Laravel Google Analytics

7517.0k](/packages/ozankurt-google-analytics)[barryvanveen/lastfm

Last.fm API client for PHP 7+

254.6k](/packages/barryvanveen-lastfm)

PHPackages © 2026

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