PHPackages                             yii2mod/yii2-google-maps-markers - 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. yii2mod/yii2-google-maps-markers

ActiveYii2-extension

yii2mod/yii2-google-maps-markers
================================

Google Maps Markers displays a set of user addresses as markers on the map.

1.4(8y ago)1815.1k—10%16[3 issues](https://github.com/yii2mod/yii2-google-maps-markers/issues)2MITPHP

Since Aug 5Pushed 8y ago4 watchersCompare

[ Source](https://github.com/yii2mod/yii2-google-maps-markers)[ Packagist](https://packagist.org/packages/yii2mod/yii2-google-maps-markers)[ RSS](/packages/yii2mod-yii2-google-maps-markers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (2)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Google Maps Markers Widget for Yii2
===================================

[](#google-maps-markers-widget-for-yii2)

GoogleMaps Widget displays a set of user addresses as markers on the map.

[![Latest Stable Version](https://camo.githubusercontent.com/b23b5c126450aefd418f65aa08dc34109a19910dec6edee4bbaec86fd05fce0f/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d676f6f676c652d6d6170732d6d61726b6572732f762f737461626c65)](https://packagist.org/packages/yii2mod/yii2-google-maps-markers)[![Total Downloads](https://camo.githubusercontent.com/c2fb90219f3739b90f24b0a99ca984fbe08f6011beb26d96440482eb405315d7/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d676f6f676c652d6d6170732d6d61726b6572732f646f776e6c6f616473)](https://packagist.org/packages/yii2mod/yii2-google-maps-markers)[![License](https://camo.githubusercontent.com/196311f6e1162cb34ecdff141bc8b7f89f6a925b2235c6e6586135550ca6a8c4/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d676f6f676c652d6d6170732d6d61726b6572732f6c6963656e7365)](https://packagist.org/packages/yii2mod/yii2-google-maps-markers)[![Build Status](https://camo.githubusercontent.com/b2f3becb9d1220d56c4fa37ac27d1e92a25cb463c6afff5af412f06eed4ad04b/68747470733a2f2f7472617669732d63692e6f72672f796969326d6f642f796969322d676f6f676c652d6d6170732d6d61726b6572732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yii2mod/yii2-google-maps-markers)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require yii2mod/yii2-google-maps-markers "*"

```

or add

```
"yii2mod/yii2-google-maps-markers": "*"

```

to the require section of your composer.json.

Usage
-----

[](#usage)

To use GoogleMaps, you need to configure its \[\[userLocations\]\] property. For example:

```
echo yii2mod\google\maps\markers\GoogleMaps::widget([
    'userLocations' => [
        [
            'location' => [
                'address' => 'Kharkiv',
                'country' => 'Ukraine',
            ],
            'htmlContent' => 'Kharkiv',
        ],
        [
            'location' => [
                'city' => 'New York',
                'country' => 'United States',
            ],
            'htmlContent' => 'New York',
        ],
    ],
]);
```

Configuration
-------------

[](#configuration)

To configure the Google Maps key or other options like language, version, library, or map options:

```
echo yii2mod\google\maps\markers\GoogleMaps::widget([
    'userLocations' => [...],
    'googleMapsUrlOptions' => [
        'key' => 'this_is_my_key',
        'language' => 'id',
        'version' => '3.1.18',
    ],
    'googleMapsOptions' => [
        'mapTypeId' => 'roadmap',
        'tilt' => 45,
        'zoom' => 5,
    ],
]);
```

OR via yii params configuration. For example:

```
'params' => [
    'googleMapsUrlOptions' => [
        'key' => 'this_is_my_key',
        'language' => 'id',
        'version' => '3.1.18',
     ],
    'googleMapsOptions' => [
        'mapTypeId' => 'roadmap',
        'tilt' => 45,
        'zoom' => 10,
    ],
],
```

To get key, please visit [page](https://developers.google.com/maps/documentation/javascript/get-api-key)

Google Maps Options
-------------------

[](#google-maps-options)

You can find them on the [options page](https://developers.google.com/maps/documentation/javascript/reference)

#### Example

[](#example)

---

[![Alt text](https://camo.githubusercontent.com/d95b81a207d80c5e71e5c6d7f1b70025184a7775a15549c0769d2decb316f69a/687474703a2f2f7265732e636c6f7564696e6172792e636f6d2f7a666f72742f696d6167652f75706c6f61642f76313434313131353938382f4d61705f707265766965775f6863776231782e706e67 "Example")](https://camo.githubusercontent.com/d95b81a207d80c5e71e5c6d7f1b70025184a7775a15549c0769d2decb316f69a/687474703a2f2f7265732e636c6f7564696e6172792e636f6d2f7a666f72742f696d6167652f75706c6f61642f76313434313131353938382f4d61705f707265766965775f6863776231782e706e67)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 52.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 ~188 days

Total

5

Last Release

3187d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a53a15e1548ce60ee92591e71492a39eaaecfc88eaa1a9d7f353d5c910381de?d=identicon)[disem](/maintainers/disem)

---

Top Contributors

[![dmitry-semenov](https://avatars.githubusercontent.com/u/17027799?v=4)](https://github.com/dmitry-semenov "dmitry-semenov (9 commits)")[![morontt](https://avatars.githubusercontent.com/u/1615692?v=4)](https://github.com/morontt "morontt (7 commits)")[![alexandr-san4ez](https://avatars.githubusercontent.com/u/20110612?v=4)](https://github.com/alexandr-san4ez "alexandr-san4ez (1 commits)")

---

Tags

yii2yii2-extensionyii2-google-maps-markersyii2-google-markersyii2extensiongoogle mapsgoogle maps markers

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/yii2mod-yii2-google-maps-markers/health.svg)

```
[![Health](https://phpackages.com/badges/yii2mod-yii2-google-maps-markers/health.svg)](https://phpackages.com/packages/yii2mod-yii2-google-maps-markers)
```

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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