PHPackages                             jonasva/laravel-vision - 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. jonasva/laravel-vision

ActiveLibrary

jonasva/laravel-vision
======================

A Laravel 5 package to interact with Google Cloud Vision.

v0.1.0(6y ago)136MITPHPPHP ^7.2

Since May 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jonasva/laravel-vision)[ Packagist](https://packagist.org/packages/jonasva/laravel-vision)[ Docs](https://github.com/jonasva/laravel-vision)[ RSS](/packages/jonasva-laravel-vision/feed)WikiDiscussions master Synced today

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

Analyze images with Google Cloud Vision
=======================================

[](#analyze-images-with-google-cloud-vision)

Easy way to analyze images with Laravel and Google Cloud Vision. Check their [demo](https://cloud.google.com/vision/docs/drag-and-drop) to see what it can do.

Features
--------

[](#features)

### Optical Character Recognition

[](#optical-character-recognition)

Convert an image or PDF document to text

```
$path = $request->file('file')->getRealPath();

$text = Vision::getFullText($path);
```

### Annotate image

[](#annotate-image)

Get annotations of your image for one or more Vision [features](https://cloud.google.com/vision/docs/features).

Make sure you extract the same type of annotations from the response as the feature you requested. (eg: `Type::FACE_DETECTION` -&gt; `$response->getFaceAnnotations()`)

```
use Google\Cloud\Vision\V1\Feature\Type;

$path = $request->file('file')->getRealPath();

$features = [Type::FACE_DETECTION];

$response = Vision::annotateImage($path, $features);

$faces = $response->getFaceAnnotations();
```

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

[](#installation)

### Laravel

[](#laravel)

This package can be installed through Composer.

```
composer require jonasva/laravel-vision
```

Publish config

```
php artisan vendor:publish --provider="Jonasva\Vision\VisionServiceProvider"
```

### Google Cloud Console

[](#google-cloud-console)

In order to use the Google Cloud Vision API, you'll need to setup a couple of things in Google Cloud Console.

1. Go to [Cloud Console](https://console.cloud.google.com) and select a project (or create a new one).
2. Add your project ID to your env file under `GOOGLE_CLOUD_PROJECT`
3. Go to the API library and find "Cloud Vision API". Click "Enable"
4. Create a service account + credentials file for Cloud Vision API. Place the credentials file in your project, and add the path (relative to your project root) to it in your env file under `GOOGLE_APPLICATION_CREDENTIALS`. (see `config/vision.php` file for more details.)
5. Setup a Google Cloud Storage bucket and make sure your newly created Cloud Vision service account user has read/write permissions to it. This bucket will be used to process PDF and TIFF type files.
6. Add the bucket name in your env under `GOOGLE_CLOUD_BUCKET`
7. I suggest setting up a lifecycle rule for your bucket to automatically remove files older than 1 day.

Pricing
-------

[](#pricing)

Make sure you take a look at Cloud Vision API's [pricing](https://cloud.google.com/vision/pricing), as it's not an entirely free service.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2553d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff40e2acbee6d0a3fa84877d48b332099f9cf4c4d0272d22d2b094e9aeac84de?d=identicon)[jonasva](/maintainers/jonasva)

---

Top Contributors

[![jonasva](https://avatars.githubusercontent.com/u/8156732?v=4)](https://github.com/jonasva "jonasva (1 commits)")

---

Tags

laravelgoogleOCRvisiongcloud

### Embed Badge

![Health badge](/badges/jonasva-laravel-vision/health.svg)

```
[![Health](https://phpackages.com/badges/jonasva-laravel-vision/health.svg)](https://phpackages.com/packages/jonasva-laravel-vision)
```

###  Alternatives

[codeat3/blade-google-material-design-icons

A package to easily make use of "Google Fonts Material Icons" in your Laravel Blade views.

23494.4k4](/packages/codeat3-blade-google-material-design-icons)[thujohn/analytics

Google Analytics for Laravel 4

113108.7k1](/packages/thujohn-analytics)[schulzefelix/laravel-search-console

A Laravel package to retrieve data from Google Search Console

5037.8k1](/packages/schulzefelix-laravel-search-console)

PHPackages © 2026

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