PHPackages                             craygl/phpgpx - 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. craygl/phpgpx

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

craygl/phpgpx
=============

Simple GPX Parser

1.1.0(10y ago)11231MITPHPPHP &gt;=5.3.0

Since Jan 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Crayg/PHPGPX)[ Packagist](https://packagist.org/packages/craygl/phpgpx)[ Docs](https://github.com/Crayg/PHPGPX)[ RSS](/packages/craygl-phpgpx/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (3)Used By (0)

PHPGPX
======

[](#phpgpx)

PHPGPX is an easy to use GPX Parser written in PHP.

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

[](#installation)

Available via composer

```
"require": {
    "craygl/phpgpx": "^1.0"
}

```

Example Usage
-------------

[](#example-usage)

```
$GPXParser = new GPXParser();

$gpx = $GPXParser->parseXML($xml);

foreach ($gpx->getTracks() as $track) {
    foreach ($track->getTrackSegments() as $trackSegment) {
        foreach ($trackSegment->getTrackPoints() as $waypoint) {
            echo 'Lat: ' . $waypoint->getLatitude() . ', Lon:' . $waypoint->getLongitude();
        }
    }
}

```

The above example will list the latitude and longitude of all the waypoints in all of the tracks.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~10 days

Total

2

Last Release

3799d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fe18391da155bbee17f32712ddbadd1944cb7590ac3894979400785d3eb235f?d=identicon)[LiddleDev](/maintainers/LiddleDev)

---

Top Contributors

[![AlainFolletete](https://avatars.githubusercontent.com/u/1777250?v=4)](https://github.com/AlainFolletete "AlainFolletete (2 commits)")[![LiddleDev](https://avatars.githubusercontent.com/u/5737931?v=4)](https://github.com/LiddleDev "LiddleDev (2 commits)")

---

Tags

gpsgpx

### Embed Badge

![Health badge](/badges/craygl-phpgpx/health.svg)

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

###  Alternatives

[mjaschen/phpgeo

Simple Yet Powerful Geo Library

1.6k9.1M27](/packages/mjaschen-phpgeo)[ballen/distical

A distance (Lat/Long) calculation library for PHP

40194.3k2](/packages/ballen-distical)[openpsa/universalfeedcreator

RSS and Atom feed generator by Kai Blankenhorn

3595.5k1](/packages/openpsa-universalfeedcreator)[funiq/geophp

Open-source native PHP library for doing geometry operations. Can read and write a wide variety of formats: (E)WKT, (E)WKB, TWKB, GeoJSON, KML, GPX, GeoRSS. Works with all Simple-Feature geometries (Point, LineString, Polygon...) and can be used to get centroids, bounding-boxes, area, etc.

21116.6k1](/packages/funiq-geophp)[vojtech-dobes/nette-forms-gpspicker

Google Maps based picker of coordinates for Nette Framework.

2356.9k](/packages/vojtech-dobes-nette-forms-gpspicker)

PHPackages © 2026

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