PHPackages                             genealabs/laravel-maps - 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. genealabs/laravel-maps

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

genealabs/laravel-maps
======================

Easy-peasy map integration for Laravel.

0.9.0(2y ago)8230.9k↓50%29[5 issues](https://github.com/mikebronner/laravel-maps/issues)[1 PRs](https://github.com/mikebronner/laravel-maps/pulls)MITPHPCI failing

Since Oct 14Pushed 1mo ago5 watchersCompare

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

READMEChangelog (10)Dependencies (9)Versions (23)Used By (0)

laravel-maps
============

[](#laravel-maps)

[![GitHub (pre-)release](https://camo.githubusercontent.com/3050dea505e87b01a5241e2416cec0e8f35015d7bdcceaee77ceefe01e590577/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f47656e65614c6162732f6c61726176656c2d6d6170732f616c6c2e737667)](https://github.com/GeneaLabs/laravel-maps)[![Packagist](https://camo.githubusercontent.com/eec6d0f194b58c27be667c7e50b35756e6a2ee98057b2d6fa5411e256f218aa3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f47656e65614c6162732f6c61726176656c2d6d6170732e737667)](https://packagist.org/packages/genealabs/laravel-maps)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/GeneaLabs/laravel-maps/master/LICENSE)

Version Support
---------------

[](#version-support)

LaravelPHP11.x8.2, 8.3, 8.4, 8.512.x8.2, 8.3, 8.4, 8.513.x8.3, 8.4, 8.5Prerequisites
-------------

[](#prerequisites)

- PHP &gt;= 8.2
- Laravel &gt;= 11.0

**This package is the continuation of `GeneaLabs/Phpgmaps`. The move to the more appropriately-named package namespace is in preparation for a complete rewrite of the package, optimizing it for Laravel.**

PhpGmaps
========

[](#phpgmaps)

This repo aims to keep appitventures/phpgmaps alive, hopefully filling in temporarily until they make their repo available again, or else continuing its maintenance going forward and keeping it working with future versions of Laravel.

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

[](#installation)

Add the repo to composer.json under this new namespace:

```
composer require genealabs/laravel-maps
```

Add an environment variable with your Google Maps API Key in your `.env` file:

```
GOOGLE_MAPS_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

```

Lastly, add the following entry to your `\config\services.php` config file:

```
    'google' => [
        'maps' => [
            'api-key' => env('GOOGLE_MAPS_API_KEY'),
        ],
    ],
```

### Example

[](#example)

The following code will prompt the user for access to their geolocation and then creates a map centered on their lat/lng

```
Route::get('/', function(){
    $config = array();
    $config['center'] = 'auto';
    $config['onboundschanged'] = 'if (!centreGot) {
            var mapCentre = map.getCenter();
            marker_0.setOptions({
                position: new google.maps.LatLng(mapCentre.lat(), mapCentre.lng())
            });
        }
        centreGot = true;';

    app('map')->initialize($config);

    // set up the marker ready for positioning
    // once we know the users location
    $marker = array();
    app('map')->add_marker($marker);

    $map = app('map')->create_map();
    echo "var centreGot = false;".$map['js']."".$map['html']."";
});

```

### More Examples

[](#more-examples)

BIOINSTALL has a great website showing how to do all the things with the class. No reason to reinvent the wheel, so [here](http://biostall.com/demos/google-maps-v3-api-codeigniter-library/) it is. The only thing to note is that `$this->googlemaps` is now either the facade `Map::` or the app variable `app('map')`.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance58

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 85.9% 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 ~156 days

Recently: every ~355 days

Total

15

Last Release

941d ago

PHP version history (2 changes)0.5.0PHP &gt;=7.0.0

0.5.8PHP &gt;=7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/4374bfc5d8583aa8c25c5080f1fcfaf09027822f47724ba6b64abc564945c80a?d=identicon)[mikebronner](/maintainers/mikebronner)

---

Top Contributors

[![mikebronner](https://avatars.githubusercontent.com/u/1791050?v=4)](https://github.com/mikebronner "mikebronner (55 commits)")[![dansleboby](https://avatars.githubusercontent.com/u/4716382?v=4)](https://github.com/dansleboby "dansleboby (4 commits)")[![CristianEstiber](https://avatars.githubusercontent.com/u/52041211?v=4)](https://github.com/CristianEstiber "CristianEstiber (2 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")[![lukasmu](https://avatars.githubusercontent.com/u/28652053?v=4)](https://github.com/lukasmu "lukasmu (1 commits)")

---

Tags

laravelgooglemapsphpgmapsbiostall

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/genealabs-laravel-maps/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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