PHPackages                             indesigncolombia/phpgmaps - 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. indesigncolombia/phpgmaps

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

indesigncolombia/phpgmaps
=========================

A codeigniter library that has been modified a bit so that it's laravel friendly

1343↓87.5%1PHP

Since Jul 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/wanchopeblanco/Phpgmaps)[ Packagist](https://packagist.org/packages/indesigncolombia/phpgmaps)[ RSS](/packages/indesigncolombia-phpgmaps/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Phpgmaps
--------

[](#phpgmaps)

A none CI implementation of BIOINSTALL's [CodeIgniter library](http://github.com/BIOSTALL/CodeIgniter-Google-Maps-V3-API-Library).

### This is a fork from the deleted repository of appitventures

[](#this-is-a-fork-from-the-deleted-repository-of-appitventures)

---

I found this library to be incredibly useful when I was working in CodeIgniter. However a little bit of work needed to be done to use it in a Laravel project. I can't take any of the credit for the actual "heavy lifting" going on in the class.

---

[![Latest Stable Version](https://camo.githubusercontent.com/8b6c33fa4b42670bad2ea3f07480e12b50756695ae4c727755c9bddf8f510a06/68747470733a2f2f706f7365722e707567782e6f72672f617070697476656e74757265732f706870676d6170732f762f737461626c652e737667)](https://packagist.org/packages/appitventures/phpgmaps)[![Total Downloads](https://camo.githubusercontent.com/4ce1bd598ae09c32175812712d6c41cf8abfef083939e1644a371e2b542975bb/68747470733a2f2f706f7365722e707567782e6f72672f617070697476656e74757265732f706870676d6170732f646f776e6c6f6164732e737667)](https://packagist.org/packages/appitventures/phpgmaps)[![Monthly Downloads](https://camo.githubusercontent.com/6a56b1e495f59fdb08dad857b00220a8badd7ca705474a84cfe52b9cbd35c341/68747470733a2f2f706f7365722e707567782e6f72672f617070697476656e74757265732f706870676d6170732f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/appitventures/phpgmaps)[![License](https://camo.githubusercontent.com/45761307445bed20bee9df104f3cc5814f39307b4065609802b989404e5482c9/68747470733a2f2f706f7365722e707567782e6f72672f617070697476656e74757265732f706870676d6170732f6c6963656e73652e737667)](https://packagist.org/packages/appitventures/phpgmaps)

\#Installation

Add this package in your `composer.json` and update composer.

For Laravel 5.\* use the below line

```
"indesigncolombia/phpgmaps"
```

Or run composer require

```
composer require indesigncolombia/phpgmaps
```

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

```
'IndesignColombia\Phpgmaps\PhpgmapsServiceProvider',
```

And the Facade

```
'Gmaps' => 'IndesignColombia\Phpgmaps\Facades\Phpgmaps',
```

### 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;';

    Gmaps::initialize($config);

    // set up the marker ready for positioning
    // once we know the users location
    $marker = array();
    Gmaps::add_marker($marker);

    $map = Gmaps::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 `Gmaps::`.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/43a5a08ca8ef340db9bdf5d44d515ba37adc9f36efe49cc31b21dedb03ebfd98?d=identicon)[wanchopeblanco](/maintainers/wanchopeblanco)

---

Top Contributors

[![pcmogollon](https://avatars.githubusercontent.com/u/31779513?v=4)](https://github.com/pcmogollon "pcmogollon (3 commits)")[![webvolant](https://avatars.githubusercontent.com/u/7198990?v=4)](https://github.com/webvolant "webvolant (1 commits)")

### Embed Badge

![Health badge](/badges/indesigncolombia-phpgmaps/health.svg)

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

PHPackages © 2026

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