PHPackages                             loskoderos/gpx-php - 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. loskoderos/gpx-php

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

loskoderos/gpx-php
==================

GPX library for PHP

32403PHP

Since Jun 27Pushed 2y ago3 watchersCompare

[ Source](https://github.com/loskoderos/gpx-php)[ Packagist](https://packagist.org/packages/loskoderos/gpx-php)[ RSS](/packages/loskoderos-gpx-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

GPX PHP
=======

[](#gpx-php)

GPX library for PHP

What is this?
-------------

[](#what-is-this)

GPX (GPS Exchange Format) is a de facto standard file format for sharing GPS tracks in the travel/adventure/overland circles. The library contains a GPX reader and writer allowing you to easily work with GPX files in PHP applications.

[![gpxphp.jpg](https://github.com/loskoderos/gpx-php/raw/master/gpxphp.jpg)](https://github.com/loskoderos/gpx-php/raw/master/gpxphp.jpg)

What is GPX used for? In general its a common format to share routes and tracks recorded by GPS devices. While travelling you can keep recording your current location with your GPS device and then export that track in the GPX format to other software or share it with others.

More information about the GPX format: [https://en.wikipedia.org/wiki/GPS\_Exchange\_Format](https://en.wikipedia.org/wiki/GPS_Exchange_Format)

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

[](#installation)

GPX-PHP is still under development, however if you want to try it out you can easily install it with Composer:

```
composer config minimum-stability dev
composer require loskoderos/gpx-php:dev-master

```

Reading GPX files
-----------------

[](#reading-gpx-files)

Sample code to read contents of the GPX file and list point coordinates.

```
