PHPackages                             bensquire/php-static-maps-generator - 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. bensquire/php-static-maps-generator

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

bensquire/php-static-maps-generator
===================================

A PHP library to generate Google Static Map Links.

2.0.2(8y ago)122.1k61MITPHPPHP &gt;=7.1.0

Since Oct 1Pushed 8y ago4 watchersCompare

[ Source](https://github.com/bensquire/php-static-maps-generator)[ Packagist](https://packagist.org/packages/bensquire/php-static-maps-generator)[ Docs](https://github.com/bensquire/php-static-maps-generator)[ RSS](/packages/bensquire-php-static-maps-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

[![Build Status](https://camo.githubusercontent.com/d668f89a0310c0f6a5eb25fadb78e5078c5c8eec1b93b2ee14677cedb17a925a/68747470733a2f2f7472617669732d63692e6f72672f62656e7371756972652f7068702d7374617469632d6d6170732d67656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bensquire/php-static-maps-generator)

php-static-maps-generator
=========================

[](#php-static-maps-generator)

A PHP library to generate Google Static Map Links. The Google Static Maps Library (V2) is a free service, \[made available by Google\] ().

Using simple OO methods, this project will build the URL which can be used in an image tag.

Example Code
------------

[](#example-code)

```
$styling = new \GoogleStaticMap\Feature\Styling();
$styling->setHue('#006400');
$styling->setLightness(50);

$featureStyling = new \GoogleStaticMap\Feature();
$featureStyling->setFeature('all');
$featureStyling->setElement('all');
$featureStyling->setStyle($styling);

$map = new \GoogleStaticMap\Map();
$map->setCenter('London,UK');
$map->setHeight(300);
$map->setWidth(232);
$map->setZoom(8);
$map->setFormat('jpg');
$map->addFeature($featureStyling);

echo '';
```

Example Output:
---------------

[](#example-output)

[![Sample map generated by the Class](https://camo.githubusercontent.com/595f764dd8c268f9cb3e22bad0c1119b6c27e58c35788889bfe713d43d3ec4f6/687474703a2f2f6d6170732e676f6f676c652e636f6d2f6d6170732f6170692f7374617469636d61703f63656e7465723d4c6f6e646f6e253243554b267a6f6f6d3d38266c616e67756167653d656e2d4742266d6170747970653d726f61646d617026666f726d61743d6a70672673697a653d32333278333030267363616c653d31267374796c653d666561747572653a616c6c253743656c656d656e743a616c6c2537436c696768746e6573733a35302537436875653a30783030363430302537437669736962696c6974793a6f6e253743696e766572745f6c696768746e6573733a66616c73652673656e736f723d66616c7365)](https://camo.githubusercontent.com/595f764dd8c268f9cb3e22bad0c1119b6c27e58c35788889bfe713d43d3ec4f6/687474703a2f2f6d6170732e676f6f676c652e636f6d2f6d6170732f6170692f7374617469636d61703f63656e7465723d4c6f6e646f6e253243554b267a6f6f6d3d38266c616e67756167653d656e2d4742266d6170747970653d726f61646d617026666f726d61743d6a70672673697a653d32333278333030267363616c653d31267374796c653d666561747572653a616c6c253743656c656d656e743a616c6c2537436c696768746e6573733a35302537436875653a30783030363430302537437669736962696c6974793a6f6e253743696e766572745f6c696768746e6573733a66616c73652673656e736f723d66616c7365)

Fix coding standards:
---------------------

[](#fix-coding-standards)

```
/usr/local/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run

```

Google Static Maps API Documentation
------------------------------------

[](#google-static-maps-api-documentation)

```
https://developers.google.com/maps/documentation/static-maps/intro

```

Requirements:
-------------

[](#requirements)

This library requires no additional software beyond a functional version of PHP 7.1 (or greater) and if you wish to retrieve the Map image, a working Internet connection.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 96.8% 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 ~25 days

Total

3

Last Release

3101d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec9cbf7c6d524dd9cc4bc63f60d1b19011663724a295524591615440cc2b8fb6?d=identicon)[bensquire](/maintainers/bensquire)

---

Top Contributors

[![bensquire](https://avatars.githubusercontent.com/u/600237?v=4)](https://github.com/bensquire "bensquire (30 commits)")[![nmfzone](https://avatars.githubusercontent.com/u/10361906?v=4)](https://github.com/nmfzone "nmfzone (1 commits)")

---

Tags

phpgooglegeneratormaps

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bensquire-php-static-maps-generator/health.svg)

```
[![Health](https://phpackages.com/badges/bensquire-php-static-maps-generator/health.svg)](https://phpackages.com/packages/bensquire-php-static-maps-generator)
```

###  Alternatives

[genericmilk/docudoodle

Generate documentation for your Laravel application using OpenAI

15120.5k](/packages/genericmilk-docudoodle)[tomloprod/radiance

A deterministic mesh gradient avatar generator for PHP.

1393.7k](/packages/tomloprod-radiance)

PHPackages © 2026

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