PHPackages                             geo-io/wkt-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. geo-io/wkt-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

geo-io/wkt-parser
=================

Well-known text (WKT) Parser.

v1.0.1(10y ago)537.9k—3.6%1MITPHPPHP &gt;=5.3.3

Since Apr 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/geo-io/wkt-parser)[ Packagist](https://packagist.org/packages/geo-io/wkt-parser)[ RSS](/packages/geo-io-wkt-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (1)

Geo I/O WKT Parser
==================

[](#geo-io-wkt-parser)

[![Build Status](https://github.com/geo-io/wkt-parser/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/geo-io/wkt-parser/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/3f68a105744430d0aff1df85167aad2d2f2b85392d9f83a0b4438980dfe4a387/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f67656f2d696f2f776b742d7061727365722f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/geo-io/wkt-parser?branch=main)

A parser which transforms [Well-known text (WKT)](http://en.wikipedia.org/wiki/Well-known_text)representations into geometric objects.

```
class MyFactory implements GeoIO\Factory
{
    public function createPoint($dimension, array $coordinates, $srid = null)
    {
        return MyPoint($coordinates['x'], $coordinates['y']);
    }

    public function createLineString($dimension, array $points, $srid = null)
    {
        return MyLineString($points);
    }

    // ...
}

$factory = MyFactory();
$parser = new GeoIO\WKT\Parser\Parser($factory);

$myLineString = $parse->parse('LINESTRING(1 2, 2 2, 1 1)');
```

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

[](#installation)

Install [through composer](http://getcomposer.org). Check the [packagist page](https://packagist.org/packages/geo-io/wkt-parser) for all available versions.

```
composer require geo-io/wkt-parser
```

License
-------

[](#license)

Copyright (c) 2014-2022 Jan Sorgalla. Released under the [MIT License](LICENSE).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.6% 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 ~205 days

Total

2

Last Release

3843d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5de14776bbddf901c6e24d35829fe66fe997c303d53aca83cc7d1a90bb0b7110?d=identicon)[jsor](/maintainers/jsor)

---

Top Contributors

[![jsor](https://avatars.githubusercontent.com/u/55574?v=4)](https://github.com/jsor "jsor (41 commits)")[![noelmf](https://avatars.githubusercontent.com/u/226789?v=4)](https://github.com/noelmf "noelmf (1 commits)")

---

Tags

geogeographygeometryparserspatialwktparseriogeometrygeowkt

### Embed Badge

![Health badge](/badges/geo-io-wkt-parser/health.svg)

```
[![Health](https://phpackages.com/badges/geo-io-wkt-parser/health.svg)](https://phpackages.com/packages/geo-io-wkt-parser)
```

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k902.6M1.8k](/packages/nikic-php-parser)[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k910.8M118](/packages/doctrine-lexer)[geo-io/wkb-parser

Well-known binary (WKB) Parser.

786.0M48](/packages/geo-io-wkb-parser)[erusev/parsedown

Parser for Markdown.

15.0k151.8M732](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

3.0k404.0M702](/packages/league-commonmark)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)

PHPackages © 2026

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