PHPackages                             bame/staticmap - 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. bame/staticmap

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

bame/staticmap
==============

A library to build static map images based on OpenStreetMap.

0.9.0(3y ago)0327[1 issues](https://github.com/OpenPlaceGuide/staticmap/issues)Apache-2.0PHP

Since Apr 15Pushed 1y agoCompare

[ Source](https://github.com/OpenPlaceGuide/staticmap)[ Packagist](https://packagist.org/packages/bame/staticmap)[ RSS](/packages/bame-staticmap/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

StaticMap / staticMapLite
=========================

[](#staticmap--staticmaplite)

PHP library for generating static map images.

Originally from [dfacts/staticmaplite](https://github.com/dfacts/staticmaplite)

Some information can be found here:

Changes from original staticMapLite
-----------------------------------

[](#changes-from-original-staticmaplite)

staticMapLite was only slightly modified to be reusable, it should be mostly backwards compatible and the staticmap.php script uses this class to provide the same functionality

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

[](#installation)

```
composer require bame/staticmap
```

Additional features
-------------------

[](#additional-features)

### StaticMap

[](#staticmap)

The new class StaticMap is added to be able to reuse the code modularily. It also allows to add a custom tile source and disabling the cache.

Disable to tile cache only, if you have permission from the tile server administrator.

### TripleZoomMap

[](#triplezoommap)

Generates map around a POI with 3 zoom levels:

```
+------------++-------------------------+
|            ||                         |
|  overview  ||  detail                 |
|            ||                         |
|            ||                         |
+------------+|       (My Place)        |
+------------+|            v            |
|            ||                         |
|  closer    ||                         |
|            ||                         |
|            ||                         |
+------------++-------------------------+

```

Each frame has a different color and the area of the previous zoom level is marked.

Example call:

```
$colors = [
    [0x00, 0x6B, 0x3F],
    [0xF9, 0xDD, 0x16],
    [0xE2, 0x3D, 0x28],
];

$map = new TripleZoomMap(8.977596, 38.76179, 700, 320, 'Bandira Addis Map', $colors, 'https://a.africa.tiles.openplaceguide.org/styles/bright/{Z}/{X}/{Y}.png', 'opg-pages');
$map->sendHeader();
return imagepng($map->getImage());
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 61.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

Unknown

Total

1

Last Release

1175d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40208c94753eabc6a98205367b8c02f3efee5f0f5895f543178aaed7cf51640d?d=identicon)[bame](/maintainers/bame)

---

Top Contributors

[![amenk](https://avatars.githubusercontent.com/u/1087128?v=4)](https://github.com/amenk "amenk (16 commits)")[![cgoffin](https://avatars.githubusercontent.com/u/2912276?v=4)](https://github.com/cgoffin "cgoffin (3 commits)")[![dfacts](https://avatars.githubusercontent.com/u/340863?v=4)](https://github.com/dfacts "dfacts (3 commits)")[![brunob](https://avatars.githubusercontent.com/u/418064?v=4)](https://github.com/brunob "brunob (2 commits)")[![mores](https://avatars.githubusercontent.com/u/1318377?v=4)](https://github.com/mores "mores (2 commits)")

---

Tags

openstreetmapphp

### Embed Badge

![Health badge](/badges/bame-staticmap/health.svg)

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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