PHPackages                             jmleroux/geojson2svg - 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. jmleroux/geojson2svg

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

jmleroux/geojson2svg
====================

v1.0.0-beta.2(8y ago)21641[2 issues](https://github.com/jmleroux/geojson2svg/issues)GPL-3.0-or-laterPHPPHP &gt;=5.6

Since Feb 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jmleroux/geojson2svg)[ Packagist](https://packagist.org/packages/jmleroux/geojson2svg)[ RSS](/packages/jmleroux-geojson2svg/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

GeoJSON to SVG
==============

[](#geojson-to-svg)

[![Build Status](https://camo.githubusercontent.com/67a466cc59ba3f0625371d91af106caa300b9fc34c1092259dcd7a99d81e0b1d/68747470733a2f2f7472617669732d63692e6f72672f6a6d6c65726f75782f67656f6a736f6e327376672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jmleroux/geojson2svg)

A simple PHP library to convert geojson file to svg file.

Rewrite from chrishadi/geojson2svg.

Usage
-----

[](#usage)

See `examples/transform.php`

Parameters
----------

[](#parameters)

Converter options:

- **canvasWidth**
- **canvasHeight**
- **top** - defines top offset from the canvas (0,0) point
- **left** - defines left offset from the canvas (0,0) point

Feature renderer options:

- **strokeWidth**.
- **fillColor**.
- **strokeColor**.

Text renderer options:

- **minXYPixel** - minimum width or height of the polygon in pixel for the label to be drawn. If a polygon has width or height less than this value, label won't be drawn over it.
- **fontSize** - defines the font size for the label.
- **lineSpacing** - defines the line spacing of the label if it spans multiple lines.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

Total

3

Last Release

3009d ago

Major Versions

v0.1-alpha → v1.0.0-beta.12017-02-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/53fc15ef07d3658544b57f07d0616c1d63ef4607d95200ce69d17ffa3459f349?d=identicon)[jmleroux](/maintainers/jmleroux)

---

Top Contributors

[![jmleroux](https://avatars.githubusercontent.com/u/1516770?v=4)](https://github.com/jmleroux "jmleroux (14 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/jmleroux-geojson2svg/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k234.7M20.6k](/packages/friendsofphp-php-cs-fixer)[symfony/rate-limiter

Provides a Token Bucket implementation to rate limit input and output in your application

26847.2M147](/packages/symfony-rate-limiter)[symfony/ldap

Provides a LDAP client for PHP on top of PHP's ldap extension

1407.5M46](/packages/symfony-ldap)[php-soap/ext-soap-engine

An ext-soap engine implementation

443.2M7](/packages/php-soap-ext-soap-engine)[phpbench/container

Simple, configurable, service container.

1512.9M6](/packages/phpbench-container)[symfony/ux-toggle-password

Toggle visibility of password inputs for Symfony Forms

26508.0k5](/packages/symfony-ux-toggle-password)

PHPackages © 2026

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