PHPackages                             poldixd/json-mapstyle-converter - 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. poldixd/json-mapstyle-converter

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

poldixd/json-mapstyle-converter
===============================

Converts Google Maps JSON Style to Google Maps Static Maps Style

0.1.0(5y ago)0107MITPHPPHP ^7.2|^8.0CI failing

Since Aug 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/poldixd/json-mapstyle-converter)[ Packagist](https://packagist.org/packages/poldixd/json-mapstyle-converter)[ RSS](/packages/poldixd-json-mapstyle-converter/feed)WikiDiscussions master Synced 2d ago

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

poldixd/json-mapstyle-converter
===============================

[](#poldixdjson-mapstyle-converter)

Converts JSON Style Schemes for Google Maps to Styles for Google Static Maps.

From this:

```
[
  {
    "elementType": "geometry",
    "stylers": [
      {
        "color": "#212121"
      }
    ]
  },
  {
    "elementType": "labels.icon",
    "stylers": [
      {
        "visibility": "off"
      }
    ]
  }
]
```

To this:

```
&style=element:geometry|color:0x212121&style=element:labels.icon|visibility:off

```

You can use JSON Style Schemes from [snazzymaps.com](https://snazzymaps.com/) or [mapstyle.withgoogle.com](https://mapstyle.withgoogle.com/).

I converted this [JavaScript Tool](http://jsfiddle.net/s6Dyp/18/) to a PHP Class.

Usage
-----

[](#usage)

```
$converter = new poldixd\JsonMapstyleConverter\JsonMapstyleConverter();

echo $converter->convert('[{"elementType": "geometry", "stylers": [ { "color": "#212121"}]},{"elementType": "labels.icon","stylers": [ {"visibility": "off"}]}]');

// &style=element:geometry|color:0x212121&style=element:labels.icon|visibility:off
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

5

Last Release

1924d ago

PHP version history (2 changes)0.0.4PHP ^7.2

0.1.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/06ee838e882815b78c994ebb11877afddc8955ec84886af6174e64e4f002d67b?d=identicon)[poldixd](/maintainers/poldixd)

---

Top Contributors

[![poldixd](https://avatars.githubusercontent.com/u/695449?v=4)](https://github.com/poldixd "poldixd (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/poldixd-json-mapstyle-converter/health.svg)

```
[![Health](https://phpackages.com/badges/poldixd-json-mapstyle-converter/health.svg)](https://phpackages.com/packages/poldixd-json-mapstyle-converter)
```

###  Alternatives

[cretueusebiu/laravel-vue-spa

A Laravel-Vue SPA starter project template.

3.0k18.8k](/packages/cretueusebiu-laravel-vue-spa)[michaldudek/subdomain-blacklist

Common words that your users shouldn't use when setting up accounts.

2816.0k](/packages/michaldudek-subdomain-blacklist)[ipub/gravatar

Gravatar creator for Nette Framework

122.0k1](/packages/ipub-gravatar)

PHPackages © 2026

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