PHPackages                             thangman22/google-cloud-vision-php - 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. thangman22/google-cloud-vision-php

ActiveVcs

thangman22/google-cloud-vision-php
==================================

1.02(9y ago)2452.7k↓50%18[2 issues](https://github.com/thangman22/google-cloud-vision-php/issues)[1 PRs](https://github.com/thangman22/google-cloud-vision-php/pulls)PHP

Since Mar 19Pushed 6y ago4 watchersCompare

[ Source](https://github.com/thangman22/google-cloud-vision-php)[ Packagist](https://packagist.org/packages/thangman22/google-cloud-vision-php)[ RSS](/packages/thangman22-google-cloud-vision-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/bcaedb0f56331dfe2ac14bc4f765549d980c14da6dbfcaa3295b157f0bf8dfbb/68747470733a2f2f7472617669732d63692e6f72672f7468616e676d616e32322f676f6f676c652d636c6f75642d766973696f6e2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/thangman22/google-cloud-vision-php)

GoogleCloudVisionPHP
====================

[](#googlecloudvisionphp)

This project hosts the PHP library for the various RESTful based Google Cloud Vision API(s) \[Read about Google Cloud Vision API\] ()

\##Features

- Support almost feature of Google Cloud Vision API (Version 1)
- Auto encode images to based64

\##how to get service key [Google Cloud Vision API Document](https://cloud.google.com/vision/docs/getting-started)

\##Requirements

- PHP &gt;= 5.4 with cURL extension

\##Installation Add this to your composer.json

```
"require": {
        "thangman22/google-cloud-vision-php": "*"
    }
```

\##Example

```
use GoogleCloudVisionPHP\GoogleCloudVision;

$gcv = new GoogleCloudVision();

// Follow instruction from Google Cloud Vision Document
$gcv->setKey("[Key from Google]");

$gcv->setImage("[File path]");

// 1 is Max result
$gcv->addFeature("LABEL_DETECTION", 1);

$gcv->addFeatureUnspecified(1);
$gcv->addFeatureFaceDetection(1);
$gcv->addFeatureLandmarkDetection(1);
$gcv->addFeatureLogoDetection(1);
$gcv->addFeatureLabelDetection(1);
$gcv->addFeatureOCR(1);
$gcv->addFeatureSafeSeachDetection(1);
$gcv->addFeatureImageProperty(1);

//Optinal
$gcv->setImageContext(array("languageHints"=>array("th")));

$response = $gcv->request();
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~70 days

Total

6

Last Release

3433d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fd0d68118a5cb469a3dd2fdb703c72dda3ad1044f9f6f9c5794358123107b3a?d=identicon)[thangman22](/maintainers/thangman22)

---

Top Contributors

[![amenk](https://avatars.githubusercontent.com/u/1087128?v=4)](https://github.com/amenk "amenk (1 commits)")[![klefix](https://avatars.githubusercontent.com/u/2960411?v=4)](https://github.com/klefix "klefix (1 commits)")[![samwilson](https://avatars.githubusercontent.com/u/213655?v=4)](https://github.com/samwilson "samwilson (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thangman22-google-cloud-vision-php/health.svg)

```
[![Health](https://phpackages.com/badges/thangman22-google-cloud-vision-php/health.svg)](https://phpackages.com/packages/thangman22-google-cloud-vision-php)
```

PHPackages © 2026

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