PHPackages                             longitude-one/spatial-writer - 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. longitude-one/spatial-writer

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

longitude-one/spatial-writer
============================

This library convert any spatial interfaces to different binary and/or string format.

0.0.0-alpha(1y ago)11MITPHPPHP ^8.1

Since Aug 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/longitude-one/spatial-writer)[ Packagist](https://packagist.org/packages/longitude-one/spatial-writer)[ RSS](/packages/longitude-one-spatial-writer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Spatial Writer
==============

[](#spatial-writer)

The writer module provide an interface to convert any SpatialInterfaces to other formats.

This library provide three strategies to convert spatial interfaces to other formats:

- A strategy to convert any spatial interfaces to extended well known binary (EWKB).
- Another one to convert any spatial interfaces to well known binary (WKB).
- A last one to convert any spatial interfaces to the internal MySQL storage format.

Feel free to provide any other strategy to convert spatial interfaces to other formats.

Current status
--------------

[](#current-status)

[![longitude-one/spatial--writer](https://camo.githubusercontent.com/3dff82a5486a23ea622644462c9344f26f062ce8e2418bb6afc9bca43d965b01/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6f6e6769747564652d2d6f6e652d7370617469616c2d2d7772697465722d626c7565)](https://camo.githubusercontent.com/3dff82a5486a23ea622644462c9344f26f062ce8e2418bb6afc9bca43d965b01/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6f6e6769747564652d2d6f6e652d7370617469616c2d2d7772697465722d626c7565)[![Stable release](https://camo.githubusercontent.com/eb6495e67ec429f39384934350c7b89f1515eb5ca152b89b4b779c81bab053f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c6f6e6769747564652d6f6e652f7370617469616c2d777269746572)](https://camo.githubusercontent.com/eb6495e67ec429f39384934350c7b89f1515eb5ca152b89b4b779c81bab053f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c6f6e6769747564652d6f6e652f7370617469616c2d777269746572)[![Minimum PHP Version](https://camo.githubusercontent.com/e54b92e6c60eeb20036ed284f05eebe9d1de21ae868745e5a3d7a0a7d1b46b18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c6f6e6769747564652d6f6e652f7370617469616c2d7772697465722e7376673f6d61784167653d33363030)](https://camo.githubusercontent.com/e54b92e6c60eeb20036ed284f05eebe9d1de21ae868745e5a3d7a0a7d1b46b18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c6f6e6769747564652d6f6e652f7370617469616c2d7772697465722e7376673f6d61784167653d33363030)[![Packagist License](https://camo.githubusercontent.com/ad10a7798533d58d76468c0e2c4cb3a9dc89d94d9c4fef6ce786e46e9edd18b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6f6e6769747564652d6f6e652f7370617469616c2d777269746572)](https://github.com/longitude-one/spatial-writer/blob/main/LICENSE)

[![Last integration test](https://github.com/longitude-one/spatial-writer/actions/workflows/php-oldest.yaml/badge.svg)](https://github.com/longitude-one/spatial-writer/actions/workflows/php-oldest.yaml)[![Maintainability](https://camo.githubusercontent.com/bcc41611977532f7611fb1975d5b9d49ea6dee7311dd53216fa97229eed70fa3/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37363661316137306132326361636563633761372f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/longitude-one/spatial-writer/maintainability)[![Downloads](https://camo.githubusercontent.com/8973a5f2c1031acb0d586707645161d90918b950a4a0f89f9e52e89866138dc8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6c6f6e6769747564652d6f6e652f7370617469616c2d7772697465722e737667)](https://packagist.org/packages/longitude-one/spatial-writer)[![Coverage Status](https://camo.githubusercontent.com/3c17a29c9445ac9e9a7d6c47a379617fa0e3f315a2e306aa969ca9d5245b0b44/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c6f6e6769747564652d6f6e652f7370617469616c2d7772697465722f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/longitude-one/spatial-writer?branch=main)

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

[](#installation)

```
composer require longitude-one/spatial-writer
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

647d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5101481?v=4)[Alexandre Tranchant](/maintainers/Alexandre-T)[@Alexandre-T](https://github.com/Alexandre-T)

---

Top Contributors

[![Alexandre-T](https://avatars.githubusercontent.com/u/5101481?v=4)](https://github.com/Alexandre-T "Alexandre-T (28 commits)")

---

Tags

phpgeometrygeographyopengispostgisgisspatialewkbiso-13249

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/longitude-one-spatial-writer/health.svg)

```
[![Health](https://phpackages.com/badges/longitude-one-spatial-writer/health.svg)](https://phpackages.com/packages/longitude-one-spatial-writer)
```

###  Alternatives

[longitude-one/doctrine-spatial

Doctrine multi-platform support for spatial types and functions, compliant with Doctrine 2.19, 3.1, and dev ones (3.2 and 4.0).

891.4M1](/packages/longitude-one-doctrine-spatial)[creof/doctrine2-spatial

Doctrine2 multi-platform support for spatial types and functions

2763.3M11](/packages/creof-doctrine2-spatial)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[jsor/doctrine-postgis

Spatial and Geographic Data with PostGIS and Doctrine.

2191.6M1](/packages/jsor-doctrine-postgis)[brick/geo

GIS geometry library

245862.1k15](/packages/brick-geo)

PHPackages © 2026

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