PHPackages                             polyfony-inc/google - 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. polyfony-inc/google

ActiveLibrary[API Development](/categories/api)

polyfony-inc/google
===================

Helper to use Google's StreetView, Maps, Distance... APIs

22651[1 PRs](https://github.com/polyfony-inc/google/pulls)1PHP

Since Oct 21Pushed 5y ago3 watchersCompare

[ Source](https://github.com/polyfony-inc/google)[ Packagist](https://packagist.org/packages/polyfony-inc/google)[ RSS](/packages/polyfony-inc-google/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (1)

Google Helpers
--------------

[](#google-helpers)

### Google\\Position

[](#googleposition)

```
new Google\Position(
	bool $throw_exceptions_on_error = true,
	bool $log_errors = true,
	string $api_key = Config::get('google','api_key')
)
```

#### Geocoding

[](#geocoding)

```
(new Google\Position)
	->setAddress('Place Charges de Gaulle, 75008 Paris, France')
	->getPosition(); // array
```

**More options**

```
->getLatitude() // float
->getLongitude() // float
```

#### Reverse geocoding

[](#reverse-geocoding)

```
(new Google\Position)
	->setPosition(
		48.8737917,
		2.2950275
	)
	->getAddress(); // string
```

**More options**

```
->getStreet() // string
->getStreetNumber() // string
->getZipCode()  // string
->getCity() // string
->getCountry() // string
```

### Google\\Photo

[](#googlephoto)

- Retrieve a photo url from streetview

```
$photo_url = (new \Google\Photo)
//	->position($lat,$lnt)
	->option(['key'=>'YourGoogleApiKeyHere'])
	->address('Some normal address')
	->size(500,500)
	->url();
```

### Google\\Map

[](#googlemap)

- Retrieve a static map url with a marker

```
$map_url = (new \Google\Map)
	->option(['key'=>'YourGoogleApiKeyHere'])
	->center($lat, $lng);
	->zoom(7)
	->retina(true)
	->marker($lat, $lng)
	->size(600,600)
	->url();
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f1eeb1833c2b47f5f39cc99741055a1075e4c36568803d66f11f2b9ca947c73?d=identicon)[AnnoyingTechnology](/maintainers/AnnoyingTechnology)

---

Top Contributors

[![AnnoyingTechnology](https://avatars.githubusercontent.com/u/5336824?v=4)](https://github.com/AnnoyingTechnology "AnnoyingTechnology (13 commits)")

### Embed Badge

![Health badge](/badges/polyfony-inc-google/health.svg)

```
[![Health](https://phpackages.com/badges/polyfony-inc-google/health.svg)](https://phpackages.com/packages/polyfony-inc-google)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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