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 3d 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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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