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

ActiveLibrary

vaporic/laravel-maps
====================

Eay - peasy map integration for Laravel.

0.8.1(5y ago)213MITPHP

Since Oct 14Pushed 5y agoCompare

[ Source](https://github.com/vaporic/laravel-maps)[ Packagist](https://packagist.org/packages/vaporic/laravel-maps)[ RSS](/packages/vaporic-laravel-maps/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (9)Versions (19)Used By (0)

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

[](#laravel-maps)

[![Travis](https://camo.githubusercontent.com/7c76a34143c3ecbbccd04cef808eb98a3ed785e7f5e11eba8c6d9dd9ef560dbc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5661706f7269632f6c61726176656c2d6d6170732e737667)](https://travis-ci.org/Vaporic/laravel-maps)[![Scrutinizer](https://camo.githubusercontent.com/b71a6085dc0f66ae1e615c794a90ee4850a6a8a8367d380d0d76890c6fb61bc7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5661706f7269632f6c61726176656c2d6d6170732e737667)](https://scrutinizer-ci.com/g/Vaporic/laravel-maps)[![Coveralls](https://camo.githubusercontent.com/83f080471be4f670c543a35c803acea899024777a5ed42f6f2a0fadae6829130/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f5661706f7269632f6c61726176656c2d6d6170732e737667)](https://coveralls.io/github/Vaporic/laravel-maps)[![GitHub (pre-)release](https://camo.githubusercontent.com/3bc06e8ec70fdcfd03da0840b9ae2ca3d26855c675fb393cceb63a43345add5e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f5661706f7269632f6c61726176656c2d6d6170732f616c6c2e737667)](https://github.com/Vaporic/laravel-maps)[![Packagist](https://camo.githubusercontent.com/61f262e91622d1294fd4b5b8db23ca2cefa791811eb9b6bc4ca55279163230dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f5661706f7269632f6c61726176656c2d6d6170732e737667)](https://packagist.org/packages/vaporic/laravel-maps)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/Vaporic/laravel-maps/master/LICENSE)

Prerequisites
-------------

[](#prerequisites)

- PHP &gt;= 7.3
- Laravel &gt;= 8.0

**This package is the continuation of `Vaporic/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 vaporic/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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 87.2% 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 ~91 days

Recently: every ~125 days

Total

15

Last Release

1850d 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/279969fced6cc828982151c615a19c915b6b514bed13495545a446a6703697c2?d=identicon)[vaporic](/maintainers/vaporic)

---

Top Contributors

[![mikebronner](https://avatars.githubusercontent.com/u/1791050?v=4)](https://github.com/mikebronner "mikebronner (41 commits)")[![CristianEstiber](https://avatars.githubusercontent.com/u/52041211?v=4)](https://github.com/CristianEstiber "CristianEstiber (2 commits)")[![vaporic](https://avatars.githubusercontent.com/u/1566202?v=4)](https://github.com/vaporic "vaporic (2 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/vaporic-laravel-maps/health.svg)

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

###  Alternatives

[genealabs/laravel-maps

Easy-peasy map integration for Laravel.

8230.9k](/packages/genealabs-laravel-maps)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)[gonoware/laravel-maps

Maps for your Laravel application

1728.0k](/packages/gonoware-laravel-maps)

PHPackages © 2026

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