PHPackages                             pderas/laravel-geocoder - 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. pderas/laravel-geocoder

ActiveLibrary[API Development](/categories/api)

pderas/laravel-geocoder
=======================

A laravel package to help interact with the google maps api.

v2.0.0(4y ago)18751MITPHPPHP &gt;=7.0.0

Since Apr 15Pushed 4y agoCompare

[ Source](https://github.com/PDERAS/laravel-geocoder)[ Packagist](https://packagist.org/packages/pderas/laravel-geocoder)[ Docs](https://github.com/PDERAS/laravel-geocoder)[ RSS](/packages/pderas-laravel-geocoder/feed)WikiDiscussions master Synced today

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

Laravel Geocoder
================

[](#laravel-geocoder)

About
-----

[](#about)

A laravel package to help interact with the google maps api.

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

[](#installation)

```
composer require pderas/laravel-geocoder

```

Publish the config, and fill in the appropriate fields in your `.env` file

```
php artisan vendor:publish --provider="Pderas\LaravelGeocoder\LaravelGeocoderServiceProvider"

```

Usage
-----

[](#usage)

Create a new Instance. Base configuration options can be set here, which can be used to override or instead of the values set in the config file. All options here are optional.

```
$geocoder = new LaravelGeocoder();

```

```
$options = [
  'countryCode' => null,
  'googleMapsApiKey' => env('GOOGLE_MAPS_API),
  'googleMapsUrl' => 'https://maps.googleapis.com/maps/api/geocode/json',
  'lookupMode' => 'lat-lng'
];

$geocoder = new LaravelGeocoder($options);

```

To Retrieve information about an address, pass it as parameters to the `send` function.

```
// All fields are optional, but the more details provided, the more accurate the results.
$location_data = [
  'address_line_1' => null,
  'address_line_2' => null,
  'city' => null,
  'country' => null,
  'postal_code' => null,
  'province' => null,
  'state' => null,
  'zip_code' => null,
];
$results = $geocoder->send($location_data)

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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 ~1098 days

Total

2

Last Release

1537d ago

Major Versions

v1.0.0 → v2.0.02022-04-17

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11511864?v=4)[Reed Jones](/maintainers/reed-jones)[@reed-jones](https://github.com/reed-jones)

---

Top Contributors

[![drewbindon](https://avatars.githubusercontent.com/u/35608232?v=4)](https://github.com/drewbindon "drewbindon (2 commits)")[![reed-jones](https://avatars.githubusercontent.com/u/11511864?v=4)](https://github.com/reed-jones "reed-jones (1 commits)")

---

Tags

laravelgeocoder

### Embed Badge

![Health badge](/badges/pderas-laravel-geocoder/health.svg)

```
[![Health](https://phpackages.com/badges/pderas-laravel-geocoder/health.svg)](https://phpackages.com/packages/pderas-laravel-geocoder)
```

###  Alternatives

[rakibdevs/openweather-laravel-api

Laravel package to connect https://openweathermap.org/ to get customized weather data for any location on the globe immediately

7652.6k](/packages/rakibdevs-openweather-laravel-api)

PHPackages © 2026

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