PHPackages                             flowaxy/geomap - 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. flowaxy/geomap

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

flowaxy/geomap
==============

An SVG map generator from GeoJSON for Flowaxy projects.

v1.0.0(1y ago)06MITPHPPHP &gt;=8.2

Since Apr 23Pushed 1y agoCompare

[ Source](https://github.com/flowaxy/geomap)[ Packagist](https://packagist.org/packages/flowaxy/geomap)[ Docs](https://flowaxy.com)[ RSS](/packages/flowaxy-geomap/feed)WikiDiscussions main Synced 1mo ago

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

GeoMapSvgGenerator
==================

[](#geomapsvggenerator)

GeoMapSvgGenerator is a PHP class for generating interactive SVG maps from GeoJSON data.
It supports region tooltips, customizable dimensions, and custom markers (icons, counts, etc).

Features
--------

[](#features)

- Convert GeoJSON to interactive SVG maps
- Render regions with optional tooltips
- Add markers with icons, labels, or counts
- Control output size and language for region names

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

[](#installation)

Use Composer to install the library:

```
composer require flowaxy/geomap
```

Usage
-----

[](#usage)

```
use Flowaxy\GeoMapSvgGenerator;

$geojson = 'ukraine.geojson';
$markers = [
    ['lat' => 50.45, 'lng' => 30.52, 'type' => 'capital', 'icon' => '⭐', 'name' => 'Kyiv'],
];

$generator = new GeoMapSvgGenerator($geojson, $markers, 1000, 800, true, 'uk');
$svg = $generator->generateSvg();

file_put_contents('map.svg', $svg);
```

Marker Format
-------------

[](#marker-format)

Each marker may contain:

- `lat` (float): Latitude
- `lng` (float): Longitude
- `type` (string): Marker type (used as CSS class)
- `icon` (string): Emoji or symbol instead of circle
- `count` (int): Number shown below
- `label` (string): Text label
- `name` (string): Tooltip text

Getting GeoJSON files
---------------------

[](#getting-geojson-files)

You can download GeoJSON files for countries, regions, or the entire world from:

-
-
-
-  *(convert TopoJSON to GeoJSON using tools like )*

For Ukraine specifically, you can try:

-
-  to convert or simplify GeoJSON files

Make sure your file contains valid GeoJSON structure with features and geometry.

License
-------

[](#license)

MIT

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance47

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

391d ago

### Community

Maintainers

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

---

Top Contributors

[![iteffa-works](https://avatars.githubusercontent.com/u/97382411?v=4)](https://github.com/iteffa-works "iteffa-works (20 commits)")

---

Tags

flowaxygeojsonmapsvgsvgmapgeojsonflowaxy

### Embed Badge

![Health badge](/badges/flowaxy-geomap/health.svg)

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

###  Alternatives

[components/flag-icon-css

A curated collection of all country flags in SVG — plus the CSS for easier integration.

12.0k1.6M23](/packages/components-flag-icon-css)[twbs/bootstrap-icons

Official open source SVG icon library for Bootstrap

7.9k2.0M56](/packages/twbs-bootstrap-icons)[phpcollection/phpcollection

General-Purpose Collection Library for PHP

1.0k64.0M34](/packages/phpcollection-phpcollection)[rinvex/countries

Rinvex Countries is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.

1.7k7.4M48](/packages/rinvex-countries)[dasprid/enum

PHP 7.1 enum implementation

382146.0M11](/packages/dasprid-enum)[marc-mabe/php-enum

Simple and fast implementation of enumerations with native PHP

49644.8M97](/packages/marc-mabe-php-enum)

PHPackages © 2026

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