PHPackages                             nicat/static-map - 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. [Image &amp; Media](/categories/media)
4. /
5. nicat/static-map

ActiveLibrary[Image &amp; Media](/categories/media)

nicat/static-map
================

Generate a Yandex,Google,MapBox,Bing,CartoDB,HERE,MapQuest static map with Static Map Maker

v1.0.2(9y ago)96.9k2[3 issues](https://github.com/Nicat/StaticMap/issues)MITPHPPHP ~5.5|~7.0

Since May 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Nicat/StaticMap)[ Packagist](https://packagist.org/packages/nicat/static-map)[ Docs](https://github.com/Nicat/StaticMap)[ RSS](/packages/nicat-static-map/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Laravel Static Map Generator
============================

[](#laravel-static-map-generator)

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

[](#installation)

First, pull in the package through Composer.

Run `composer require nicat/static-map`

And then, if using Laravel 5, include the service provider within `config/app.php`.

```
'providers' => [
    Nicat\StaticMap\StaticMapServiceProvider::class,
];
```

And, for convenience, add a facade alias to this same file at the bottom:

```
'aliases' => [
    'StaticMap' => Nicat\StaticMap\Facade\StaticMap::class,
];
```

If you need to modify the Static Map partials, you can run:

```
php artisan vendor:publish
```

Usage
-----

[](#usage)

Within your controllers

```
StaticMap::Google('London')
```

You may also do:

- `StaticMap::Google('London')`
- `StaticMap::Google('37.6213129,-122.3811441')`
- `StaticMap::GoogleWithImg('London')`
- `StaticMap::Google('London', ['with' => 600, 'height' => 500, 'mapType' => 'hybrid'])`

You can modify partials

```
    'width'       => 600, // Width of Map image
    'height'      => 400, // Height of Map Image
    'mapType'     => 'roadmap', // Map type ['roadmap', 'terrain', 'satellite', 'hyrid']
    'imageFormat' => 'png', // gif, png or jpg
    'zoom'        => 14, // Zoom of Map
```

You may also can add markers:

```
{!! StaticMap::GoogleWithImg('London', ['markers' => ['center' => 'Westminster London', 'label' => '2'], 'imageType' => 'gif'])
```

If you want just add marker of main center

```
{!! StaticMap::GoogleWithImg('37.6213129,-122.3811441', ['markers' => true]) !!}
```

If you want just use with map link

```
{!! StaticMap::GoogleWithLink('37.6213129,-122.3811441', ['markers' => true]) !!}
```

Marker options

```
    'center'  => '37.6213129,-122.3811441', // or 'San Francisco International Airport'
    'label'   => '1', // Label Name of Marker
    'color'   => '0xff0000', //  color of marker
    'size'    => 'mid', // tiny (Small),small (Medium), mid (Large)
```

\##Some examples

```
{!! StaticMap::GoogleWithImg('San Francisco International Airport', ['markers' => [
                ['center' => 'San Bruno', 'label' => '2'],
                ['center' => '37.6213129,-122.3711441', 'label' => '1']
            ]
        ]) !!}
```

[![http://s33.postimg.org/40tfyv5a7/image.png](https://camo.githubusercontent.com/fe9f7e20103b497228f672fc6fe92ae24003a610c1683037d0d4903fe342df4b/687474703a2f2f7333332e706f7374696d672e6f72672f3430746679763561372f696d6167652e706e67)](https://camo.githubusercontent.com/fe9f7e20103b497228f672fc6fe92ae24003a610c1683037d0d4903fe342df4b/687474703a2f2f7333332e706f7374696d672e6f72672f3430746679763561372f696d6167652e706e67)

```
{!! StaticMap::GoogleWithImg('37.6213129,-122.3811441', ['with' => 600, 'height' => 500, 'mapType' => 'hybrid']) !!}
```

[![http://s33.postimg.org/5m1es88zj/image.png](https://camo.githubusercontent.com/c4d408c68fc697d66c2f2da0591169f40d2ffef8fdb618230e44727a7d78373b/687474703a2f2f7333332e706f7374696d672e6f72672f356d31657338387a6a2f696d6167652e706e67)](https://camo.githubusercontent.com/c4d408c68fc697d66c2f2da0591169f40d2ffef8fdb618230e44727a7d78373b/687474703a2f2f7333332e706f7374696d672e6f72672f356d31657338387a6a2f696d6167652e706e67)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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 ~132 days

Total

3

Last Release

3420d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66792?v=4)[Nat Torkington](/maintainers/NJT)[@njt](https://github.com/njt)

---

Top Contributors

[![Nicat](https://avatars.githubusercontent.com/u/2685189?v=4)](https://github.com/Nicat "Nicat (16 commits)")

---

Tags

laravelgoogleyandexbingmapboxmapquestherecartodbNicatStaticMap

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nicat-static-map/health.svg)

```
[![Health](https://phpackages.com/badges/nicat-static-map/health.svg)](https://phpackages.com/packages/nicat-static-map)
```

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M159](/packages/intervention-image-laravel)[owen-oj/laravel-getid3

This package is a wrapper around james-heinrich/getid3 to extract various information from media files

85501.8k1](/packages/owen-oj-laravel-getid3)[gonoware/laravel-maps

Maps for your Laravel application

1728.0k](/packages/gonoware-laravel-maps)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4923.6k5](/packages/ralphjsmit-laravel-glide)[garf/laravel-pinger

Ping search engines about website updates

2322.4k](/packages/garf-laravel-pinger)

PHPackages © 2026

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