PHPackages                             iseed838/photon-api - 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. [API Development](/categories/api)
4. /
5. iseed838/photon-api

ActiveLibrary[API Development](/categories/api)

iseed838/photon-api
===================

Project Photon-api wrapper

0.1.4(4y ago)0163MITPHPPHP &gt;=7.2CI failing

Since Dec 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iseed838/photon-api)[ Packagist](https://packagist.org/packages/iseed838/photon-api)[ Docs](https://github.com/iseed838/photon-api)[ RSS](/packages/iseed838-photon-api/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)Dependencies (3)Versions (13)Used By (0)

photon-api
==========

[](#photon-api)

Project Photon-api wrapper

Project wrapper of api requests for photon project

Allows you to perform a fully contextual search by text template and reverse search by coordinates

- To install with composer try:

composer require iseed838/photon-api "~0.1"

- Make query request

```
$client   = new \Photon\Models\PhotonClient(new \GuzzleHttp\Client());

$request  = new \Photon\Models\PhotonQueryRequest([
    'query'  => "Moscow Valilova 6",
]);
$response = $client->query($request);
```

- Make reverse request

```
$client   = new \Photon\Models\PhotonClient(new \GuzzleHttp\Client());

$request  = new \Photon\Models\PhotonReverseRequest( [
    'latitude'  => 55.630358,
    'longitude' => 37.516776,
]);
$response = $client->reverse($request);
```

The result returns an array containing the limit of response objects

```
    [0] => Photon\Models\PhotonResponse Object
        (
            [osm_id] => 537247988
            [osm_type] => W
            [extent] => Array
                (
                    [0] => 37.516021
                    [1] => 55.6309387
                    [2] => 37.5177537
                    [3] => 55.6299123
                )

            [osm_key] => building
            [osm_value] => retail
            [postcode] => 117632
            [countrycode] =>
            [country] => Russia
            [state] => Moscow
            [city] => Konkovo District
            [street] => Profsous street
            [housenumber] => 126 c3
            [latitude] => 55.63039825
            [longitude] => 37.516796697274
            [type] => Point
        )
```

Query request properties

- query (string|required) Text query
- longitude (int|float|null) Additional box coordinate;
- latitude (int|float|null) Additional box coordinate;
- language (required|string) Response language. Default is en. May accept en,de,ft,it
- limit (required|int) Response count/ Default is 5
- osm\_tag (string|null) Additional filter to osm\_tag

Reverse request properties

- longitude (required|int|float) Address coordinate;
- latitude (required|int|float) Address coordinate;
- language (required|string) Response language. Default is en. May accept en,de,ft,it
- limit (required|int) Response count/ Default is 5

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Recently: every ~132 days

Total

12

Last Release

1804d ago

PHP version history (4 changes)0.0.1PHP ^7.0

0.0.5PHP ^7.1

v0.1.2PHP ^7.2

0.1.4PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/90b89e89a1a57c872db9d2eaeb9c188ce71bd6d9d5b7529d003dfab5ad29694a?d=identicon)[iseed](/maintainers/iseed)

---

Top Contributors

[![iseed838](https://avatars.githubusercontent.com/u/48585343?v=4)](https://github.com/iseed838 "iseed838 (18 commits)")

---

Tags

apiphoton

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iseed838-photon-api/health.svg)

```
[![Health](https://phpackages.com/badges/iseed838-photon-api/health.svg)](https://phpackages.com/packages/iseed838-photon-api)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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