PHPackages                             pepin82/geometry - 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. pepin82/geometry

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

pepin82/geometry
================

point-in-polygon algorithm

12751PHP

Since Feb 9Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Description
-----------

[](#description)

[![Build Status](https://camo.githubusercontent.com/875e0751f6922a65ab5b61386c1e1b6800eba7cdea1062b8a6db94a544c62ab8/68747470733a2f2f7472617669732d63692e6f72672f706570696e38322f67656f6d657472792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pepin82/geometry/)

Point In Polygon Algorithm, based on Michaël Niessen implementation \[\]

Usage
-----

[](#usage)

```
use \Geometry\Point;
use \Geometry\Points;
use \Geometry\Polygon;

$polygon = new Polygon(new Points(array(
    new Point(-1, -1),
    new Point(-1, 1),
    new Point(1, 1),
    new Point(1, -1),
    new Point(-1, -1)
)));

if($polygon->contains(new Point(0, 0))) {
    echo "point is contained in polygon";
}
else {
    echo "point isn't contained in polygon";
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/43659b769e96a829c1d65688cc8b8d76d32f3c6942d39ae845a8db1ba6dc3c1e?d=identicon)[pepin82](/maintainers/pepin82)

---

Top Contributors

[![pepin82](https://avatars.githubusercontent.com/u/1844365?v=4)](https://github.com/pepin82 "pepin82 (12 commits)")[![aivus](https://avatars.githubusercontent.com/u/1021703?v=4)](https://github.com/aivus "aivus (1 commits)")

### Embed Badge

![Health badge](/badges/pepin82-geometry/health.svg)

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

PHPackages © 2026

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