PHPackages                             2amigos/yii2-leaflet-makimarker-plugin - 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. 2amigos/yii2-leaflet-makimarker-plugin

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

2amigos/yii2-leaflet-makimarker-plugin
======================================

Yii2 Leaflet plugin to create map icons using Maki Icons from MapBox.

1.0.2(9y ago)13.4k2[1 issues](https://github.com/2amigos/yii2-leaflet-makimarker-plugin/issues)1BSD-3-ClausePHP

Since Feb 17Pushed 9y ago9 watchersCompare

[ Source](https://github.com/2amigos/yii2-leaflet-makimarker-plugin)[ Packagist](https://packagist.org/packages/2amigos/yii2-leaflet-makimarker-plugin)[ Docs](http://yiiwheels.com/extension/leaflet-makimarkers-plugin)[ RSS](/packages/2amigos-yii2-leaflet-makimarker-plugin/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (5)Used By (1)

Maki Marker Plugin
==================

[](#maki-marker-plugin)

[![Latest Version](https://camo.githubusercontent.com/f7f4499f59dde4a6c6eb2c311b85e1d77dcdb0c6bd7953e2ccbc7e82ba785764/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f32616d69676f732f796969322d6c6561666c65742d6d616b696d61726b65722d706c7567696e2e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/2amigos/yii2-leaflet-makimarker-plugin/tags)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/47805e1a93dcab5ea41bc9b9ebf35efc7043908587c394fee58339ed0c7c517f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f32616d69676f732f796969322d6c6561666c65742d6d616b696d61726b65722d706c7567696e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/2amigos/yii2-leaflet-makimarker-plugin)[![Coverage Status](https://camo.githubusercontent.com/7a1f5e245eb804c5e607ef48e9253662c289d6d76c95faa6eec9e7b71f441384/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f32616d69676f732f796969322d6c6561666c65742d6d616b696d61726b65722d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-leaflet-makimarker-plugin/code-structure)[![Quality Score](https://camo.githubusercontent.com/367bde635c40d6c8c88036d2e3417d1f5cdca645bf123a63a5a81eec43153637/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f32616d69676f732f796969322d6c6561666c65742d6d616b696d61726b65722d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-leaflet-makimarker-plugin)[![Total Downloads](https://camo.githubusercontent.com/b6561a8aaff7924eba857d30854f5cfc50ef91d3bfdb04053f3af3ad11bd70b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f32616d69676f732f796969322d6c6561666c65742d6d616b696d61726b65722d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/2amigos/yii2-leaflet-makimarker-plugin)

Yii 2 [LeafletJs](http://leafletjs.com/) Plugin to create map icons using Maki Icons from MapBox. Markers are retrieved from MapBox's [Static Marker Api](https://www.mapbox.com/developers/api/#Stand-alone.markers).

This Plugin works in conjunction with [LeafLet](https://github.com/2amigos/yii2-leaflet-extension)library for [Yii 2](https://github.com/yiisoft/yii2) framework.

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

[](#installation)

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

Either run

```
composer require 2amigos/yii2-leaflet-makimarker-plugin:~1.0

```

or add

```
"2amigos/yii2-leaflet-makimarker-plugin" : "~1.0"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

Using its `make` method:

```

use dosamigos\leaflet\plugins\makimarker\MakiMarker;
use dosamigos\leaflet\types\LatLng;
use dosamigos\leaflet\layers\Marker;

// LeafLet initialization component
// ...

// Initialize plugin
$makimarkers = new MakiMarker(['name' => 'makimarker']);

// install
$leafLet->installPlugin($makimarkers);

// sample location
$center = new LatLng(['lat' => 51.508, 'lng' => -0.11]);

// generate icon through its icon
$marker = new Marker([
    'latLng' => $center,
    'icon' => $leafLet->plugins->makimarker->make("rocket",['color' => "#b0b", 'size' => "m"]),
    'popupContent' => 'Hey! I am a marker'
]);

```

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Antonio Ramirez](https://github.com/tonydspaniard)
- [All Contributors](../../contributors)

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

> [![2amigOS!](https://camo.githubusercontent.com/9fd8f1de41dc23003bb2a54034cb6658dde5be97092e195a62d629d0d7fa7f6c/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67)](http://www.2amigos.us)
> *Web development has never been so fun!*[www.2amigos.us](http://www.2amigos.us)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~311 days

Total

4

Last Release

3531d ago

Major Versions

0.1.0 → 1.0.02015-04-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/566016?v=4)[Antonio Ramirez](/maintainers/tonydspaniard)[@tonydspaniard](https://github.com/tonydspaniard)

---

Top Contributors

[![t3rmit](https://avatars.githubusercontent.com/u/971200?v=4)](https://github.com/t3rmit "t3rmit (1 commits)")

---

Tags

leafletmaki-iconsmapsmarkerspluginyii2pluginyii2extensionwidgetmapsyiileafletyii 22amigos

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/2amigos-yii2-leaflet-makimarker-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/2amigos-yii2-leaflet-makimarker-plugin/health.svg)](https://phpackages.com/packages/2amigos-yii2-leaflet-makimarker-plugin)
```

PHPackages © 2026

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