PHPackages                             headoo/google-vision-api-bundle - 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. headoo/google-vision-api-bundle

ActiveSymfony-bundle[API Development](/categories/api)

headoo/google-vision-api-bundle
===============================

Google Vision Api Bundle

v0.2(9y ago)42.6k3[2 issues](https://github.com/Headoo/GoogleVisionApiBundle/issues)MITPHPPHP &gt;=7.1

Since Jan 4Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Headoo/GoogleVisionApiBundle)[ Packagist](https://packagist.org/packages/headoo/google-vision-api-bundle)[ Docs](https://github.com/Headoo/GoogleVisionApiBundle)[ RSS](/packages/headoo-google-vision-api-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

GoogleVisionApiBundle
=====================

[](#googlevisionapibundle)

[![Build Status](https://camo.githubusercontent.com/67b082621d308e96e95cfa16d2db0e6a876260342fd8723dcac7aa2f04ce24cc/68747470733a2f2f7472617669732d63692e6f72672f486561646f6f2f476f6f676c65566973696f6e41706942756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Headoo/GoogleVisionApiBundle)[![Code Climate](https://camo.githubusercontent.com/38cc43156ccbf462255ac5444fb6874f5748df88d82f747051d3bd7e4ffacf9c/68747470733a2f2f636f6465636c696d6174652e636f6d2f7265706f732f3538366433366132623634353864303035373030306230392f6261646765732f37313662343531386633633634323864373265322f6770612e737667)](https://codeclimate.com/repos/586d36a2b6458d0057000b09/feed)[![Latest Stable Version](https://camo.githubusercontent.com/7de80ac80fcfd5e206649b5f97987b3060e5ffde2e728d8f19eb21b14b0dce98/68747470733a2f2f706f7365722e707567782e6f72672f686561646f6f2f676f6f676c652d766973696f6e2d6170692d62756e646c652f762f737461626c65)](https://packagist.org/packages/headoo/google-vision-api-bundle)[![codecov](https://camo.githubusercontent.com/d95433722dc3127a33cfd14fd66cd6de2af5c0f528c27ba0106257f3728893e6/68747470733a2f2f636f6465636f762e696f2f67682f486561646f6f2f476f6f676c65566973696f6e41706942756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Headoo/GoogleVisionApiBundle)

GoogleVisionApiBundle is a Symfony2/3 Bundle for use the API Google Vision simply ()

Installation
------------

[](#installation)

Via Composer

```
$ composer require headoo/google-vision-api-bundle
```

or in composer.json file

```
"headoo/google-vision-api-bundle": "dev-master"
```

Register the bundle in `app/AppKernel.php`:

```
public function registerBundles()
{
    return array(
        // ...
        new Headoo\GoogleVisionApiBundle\HeadooGoogleVisionApiBundle(),
        // ...
    );
}
```

Configuration
-------------

[](#configuration)

Configure the google api key in your `config.yml` :

```
headoo_google_vision_api:
    api_key: '%apikey%'
```

Usage
-----

[](#usage)

It works like a service. On a Controller you can call like this:

```
	$google_vision = $this->container->get('headoo_google_vision_api.helper');
```

You can use all detections functionality with 1 endpoint:

```
	$google_vision->vision($image, $type);
```

Your $image must be base64 encoded, or via an URL , or an absolute path.

Available $type are :

- TYPE\_UNSPECIFIED
- FACE\_DETECTION
- LANDMARK\_DETECTION
- LOGO\_DETECTION
- LABEL\_DETECTION
- TEXT\_DETECTION
- SAFE\_SEARCH\_DETECTION
- IMAGE\_PROPERTIES
- WEB\_DETECTION

Return
------

[](#return)

You will receive an array with http\_code, raw\_response and a parsed\_response.

- http\_code : Google Http Code Response (often 200 for OK, and 400 for error)
- raw\_response : Google Vision Api Response Raw, without manipulation
- parsed\_response : Parsed response with objects, easier to use for a PHP user.

Security
--------

[](#security)

If you discover a security vulnerability , please email instead of using the issue tracker. All security vulnerabilities will be promptly addressed.

Standalone Test
---------------

[](#standalone-test)

### How to test

[](#how-to-test)

1. clone repo : `$ sudo git clone https://github.com/Headoo/GoogleVisionApiBundle.git`
2. go into directory : `$ cd GoogleVisionApiBundle/`
3. install composer as explained here :
4. launch composer update : `$ ./composer.phar update`
5. modify `headoo_google_vision_api.api_key` in `Tests/App/config.yml`
6. launch test : `$ ./vendor/phpunit/phpunit/phpunit`

License
-------

[](#license)

This Bundle is open-sourced software licensed under the MIT license

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

2

Last Release

3341d ago

PHP version history (2 changes)v0.1PHP &gt;=5.4

v0.2PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/56b795cbdb985a1754b01b6f65f28335d10c0d25f2fc2224ac13b0d0764995d3?d=identicon)[ka](/maintainers/ka)

---

Top Contributors

[![kcassam](https://avatars.githubusercontent.com/u/150823?v=4)](https://github.com/kcassam "kcassam (9 commits)")[![MisTe](https://avatars.githubusercontent.com/u/863895?v=4)](https://github.com/MisTe "MisTe (8 commits)")[![misteio](https://avatars.githubusercontent.com/u/1570940?v=4)](https://github.com/misteio "misteio (6 commits)")[![gozutok](https://avatars.githubusercontent.com/u/748156?v=4)](https://github.com/gozutok "gozutok (2 commits)")

---

Tags

bundlegooglevisionheadoo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/headoo-google-vision-api-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/headoo-google-vision-api-bundle/health.svg)](https://phpackages.com/packages/headoo-google-vision-api-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[thecodingmachine/graphqlite-bundle

A Symfony bundle for thecodingmachine/graphqlite.

371.6M3](/packages/thecodingmachine-graphqlite-bundle)[eko/googletranslatebundle

A Symfony bundle to deals with Google Translate API

4337.1k](/packages/eko-googletranslatebundle)

PHPackages © 2026

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