PHPackages                             calin-marian/google-supported-languages - 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. calin-marian/google-supported-languages

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

calin-marian/google-supported-languages
=======================================

Provides a list of supported languages by Google APIs.

v1.0.4(9y ago)0941GPL-3.0+PHPPHP &gt;=5.2.0

Since Aug 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/calin-marian/google-supported-languages)[ Packagist](https://packagist.org/packages/calin-marian/google-supported-languages)[ Docs](https://github.com/calin-marian/google-supported-languages)[ RSS](/packages/calin-marian-google-supported-languages/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (1)

google-supported-languages
==========================

[](#google-supported-languages)

Languages supported by Google APIs.
-----------------------------------

[](#languages-supported-by-google-apis)

Google APIs support a [limited list of languages](https://developers.google.com/maps/faq#languagesupport). This library provides a way to validate the language parameter in your own Google API library.

Example code:

```
  $googleLibrary = new MyAwesomeGoogleApiLibrary($key);

  $languageFactory = new \GoogleSupportedLanguages\LanguageFactory();

  $languageCode = 'en';
  $language = $languageFactory->create($languageCode);

  $googleLibrary->setLanguage($language);
```

If the provided language code is not part of the supported list, an InvalidArgumentException is thrown.

Also you can then typehint the parameter to the interface \\GoogleSupportedLanguages\\Language\\LanguageInterface:

```
  class MyAwesomeGoogleApiLibrary implements MyAwesomeGoogleApiLibraryInterface;
    ....
    public function setLanguage(\GoogleSupportedLanguages\Language\LanguageInterface $language){
      $this->language = $language;
    }
    ....
    public function execute() {
      ...
      $parameters['language'] = $this->language->getCode();
      ....
    }
    ....
  }
```

Installing the library.
-----------------------

[](#installing-the-library)

```
  composer require calin-marian/google-supported-languages
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

3502d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4013741?v=4)[Calin Marian](/maintainers/calin-marian)[@calin-marian](https://github.com/calin-marian)

---

Top Contributors

[![calin-marian](https://avatars.githubusercontent.com/u/4013741?v=4)](https://github.com/calin-marian "calin-marian (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/calin-marian-google-supported-languages/health.svg)

```
[![Health](https://phpackages.com/badges/calin-marian-google-supported-languages/health.svg)](https://phpackages.com/packages/calin-marian-google-supported-languages)
```

###  Alternatives

[rainlab/sitemap-plugin

Sitemap plugin for October CMS

2280.9k1](/packages/rainlab-sitemap-plugin)

PHPackages © 2026

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