PHPackages                             jockchou/photogps - 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. jockchou/photogps

ActiveLibrary

jockchou/photogps
=================

读取照片的GPS定位信息

120PHP

Since May 11Pushed 10y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

ReadPhotoGPS
============

[](#readphotogps)

reads the GPS coordinate data from a JPEG or TIFF image file. This way you can GPS data generated by digital cameras.

### Dependecies

[](#dependecies)

- PHP &gt;= 4.2.0
- php\_mbstring
- php\_exif

---

1. Installing
-------------

[](#1-installing)

Easy install via composer. Still no idea what composer is? Inform yourself [here](http://getcomposer.org).

```
{
  "require": {
    "jockchou/photogps": "*"
  }
}
```

2. Usage
--------

[](#2-usage)

```
require_once(__DIR__ . '/../vendor/autoload.php');

$pg = new \PhotoGps\PhotoGps(__DIR__ . "/../test-1.jpg");

var_dump($pg->coordinate());
/*
array(2) {
  ["longitude"]=>
  float(113.92439166667)
  ["latitude"]=>
  float(22.529294444444)
}
*/

//when photo has no gps info
$pg->setFilename(__DIR__ . "/../test-2.jpg");

var_dump($pg->coordinate()); //bool(false)
```

3. License
==========

[](#3-license)

jockchou/photogps is freely distributable under the terms of the MIT license.

Copyright (c) 2016 jockchou ()

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/2f2756cdb31bdce6dbc3b84878dcc564a5fb5e0475147a7868740da63e39d955?d=identicon)[jockchou](/maintainers/jockchou)

### Embed Badge

![Health badge](/badges/jockchou-photogps/health.svg)

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

PHPackages © 2026

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