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

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

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

Yii2 Leaflet plugin to create map icons using Font Awesome Icons.

1.0.3(9y ago)05.2k↑250%7BSD-3-ClausePHP

Since Jul 3Pushed 9y ago18 watchersCompare

[ Source](https://github.com/2amigos/yii2-leaflet-awesome-plugin)[ Packagist](https://packagist.org/packages/2amigos/yii2-leaflet-awesome-plugin)[ RSS](/packages/2amigos-yii2-leaflet-awesome-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Awesome Plugin
==============

[](#awesome-plugin)

[![Latest Version](https://camo.githubusercontent.com/ec2a8814f77665c3014a1744cc12523ab17c6600480550f9022de90b84d3ec4d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f32616d69676f732f796969322d6c6561666c65742d617765736f6d652d706c7567696e2e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/2amigos/yii2-leaflet-awesome-plugin/tags)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/389eb747af5afef3bb5962e3924fa05af947cd377add3e6d47184feb339d01f5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f32616d69676f732f796969322d6c6561666c65742d617765736f6d652d706c7567696e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/2amigos/yii2-leaflet-awesome-plugin)[![Coverage Status](https://camo.githubusercontent.com/dd9ab00c4f72b8498cf4e9b01cdfc4377c1f9d6106e86646f121c26e0707e86a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f32616d69676f732f796969322d6c6561666c65742d617765736f6d652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-leaflet-awesome-plugin/code-structure)[![Quality Score](https://camo.githubusercontent.com/8539b990022371e6e782e5d3a86f03dd2f3147b759bd95d8a4f5b7ac32801190/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f32616d69676f732f796969322d6c6561666c65742d617765736f6d652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-leaflet-awesome-plugin)[![Total Downloads](https://camo.githubusercontent.com/4f9c598d52d38af3bb46aa843cce4e2d4bd7c507092746434ad31ae355373086/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f32616d69676f732f796969322d6c6561666c65742d617765736f6d652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/2amigos/yii2-leaflet-awesome-plugin)

Yii 2 [LeafletJs](http://leafletjs.com/) Plugin to create map icons using [Font Awesome](http://fontawesome.io/) and GlyphIcon Icons.

This Plugin works in conjunction with [LeafLet](https://github.com/2amigos/yii2-leaflet-extension)library for [Yii 2](https://github.com/yiisoft/yii2) framework, Bootstrap and/or [Font Awesome](http://fontawesome.io/) iconic font and css toolkit.

In order to make it work with GlyphIcon (included with Bootstrap) or [Font Awesome](http://fontawesome.io/) files you need to add the required files your self.

To swap betwen GlyphIcon (default) and FontAwesome, you just need to modify its prefix. Should work with other Font Toolkits as long as it follows the following class signature: "prefix prefix-iconname".

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

[](#installation)

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

Either run

```
php composer.phar require "2amigos/yii2-leaflet-awesome-plugin" "*"

```

or add

```
"2amigos/yii2-leaflet-awesome-plugin" : "*"
```

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

Usage
-----

[](#usage)

```
// LeafLet initialization component
// ...

// Initialize plugin
$awesomeMarkers = new dosamigos\leaflet\plugins\awesome\AwesomeMarker(['name' => 'awesome']);

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

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

// generate icon through its icon
$marker = new dosamigos\leaflet\layers\Marker([
    'latLng' => $center,
    'icon' => $leafLet->plugins->awesome->make("star",['markerColor' => "green", 'prefix' => "fa"]),
    '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

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~200 days

Total

5

Last Release

3537d ago

Major Versions

0.1.0 → 1.0.02015-04-03

### Community

Maintainers

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

---

Top Contributors

[![tonydspaniard](https://avatars.githubusercontent.com/u/566016?v=4)](https://github.com/tonydspaniard "tonydspaniard (7 commits)")[![it3rmit](https://avatars.githubusercontent.com/u/7312924?v=4)](https://github.com/it3rmit "it3rmit (1 commits)")

---

Tags

pluginyii2extensionwidgetmapsyiiiconleafletyii 22amigos

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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