PHPackages                             jware/geophp - 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. jware/geophp

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

jware/geophp
============

A little geo spatial library for PHP based on Geo Rust and Turf.js

1.0.0(6y ago)193177MITPHPPHP ^7CI failing

Since Jan 20Pushed 2y ago2 watchersCompare

[ Source](https://github.com/jware-solutions/GeoPHP)[ Packagist](https://packagist.org/packages/jware/geophp)[ RSS](/packages/jware-geophp/feed)WikiDiscussions master Synced 3d ago

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

GeoPHP
======

[](#geophp)

GeoPHP is a library of geospatial functions based on GeoRust and Turf.js.

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

[](#installation)

Install the library running:

`composer require jware/geophp`

Usage
-----

[](#usage)

```
use \JWare\GeoPHP\Polygon;
use \JWare\GeoPHP\Point;

$polygon = new Polygon([
    new Point(1, -1),
    new Point(2, 1),
    new Point(3, -1),
    new Point(2, -2),
    new Point(1, -1)
]);

$point = new Point(-1, 2);
$point2 = new Point(2, 2);

$polygon->containsPoint($point); // False
$polygon->containsPoint($point2); // True

```

Please read the [documentation](https://jware-solutions.github.io/geophp-documentation/ "Full documentation") to see the full method list available.

Why another Geospatial library?
-------------------------------

[](#why-another-geospatial-library)

GeoPHP was born due to the lack of a modern geospatial library for PHP. The tools available today are not published in the Composer repositories and are not easy to use (some requires DB drivers or constructs the Geometries from complex Strings). GeoPHP offers:

- 🚀 Modern and fast: made in PHP 7 with fast algorithms
- 🥳 Friendly and simple interface: implemented with the Object Oriented Paradigm, allows its easy and fast use by the developer.
- 👨🏼‍💻 Easy access: the library is published in Composer for quick import into your projects.
- 🛠 Tested: all methods are covered by unit tests.
- 🌟 A lot of examples!

Contributing
------------

[](#contributing)

First of all, thanks for consider contributing to the project! Please, read [CONTRIBUTING.md](/CONTRIBUTING.md) for more.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

Total

3

Last Release

2218d ago

Major Versions

1.0.x-dev → 2.0.x-dev2020-04-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/35ee3db7e11d2274beacd891da0dc8543b1c938f80b17e232f2996879f705fb8?d=identicon)[Genarito](/maintainers/Genarito)

---

Top Contributors

[![Genarito](https://avatars.githubusercontent.com/u/18036578?v=4)](https://github.com/Genarito "Genarito (42 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jware-geophp/health.svg)

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

###  Alternatives

[phar-io/version

Library for handling version information and constraints

7.5k743.4M42](/packages/phar-io-version)[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k289.5M63](/packages/jean85-pretty-package-versions)[willdurand/negotiation

Content Negotiation tools for PHP provided as a standalone library.

1.4k122.0M157](/packages/willdurand-negotiation)[illuminate/contracts

The Illuminate Contracts package.

704122.9M10.1k](/packages/illuminate-contracts)[wikimedia/composer-merge-plugin

Composer plugin to merge multiple composer.json files

1.0k25.0M261](/packages/wikimedia-composer-merge-plugin)[sabre/uri

Functions for making sense out of URIs.

29335.2M40](/packages/sabre-uri)

PHPackages © 2026

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