library laravel-gcv
Google Cloud Vision API Laravel package
giulioprinaricotti/laravel-gcv
Google Cloud Vision API Laravel package
- Saturday, October 28, 2017
- by giulioprinaricotti
- Repository
- 2 Watchers
- 3 Stars
- 78 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 11 % Grown
laravel-gcv
Laravel Google Cloud Vision API package, (*1)
Install
Install via Composer
composer require giulioprinaricotti/laravel-gcv
Add the following lines to your config/app.php
, (*2)
'providers' => [
...
LaravelGCV\LaravelGCVProvider::class,
...
],
'aliases' => [
...
'LaravelGCV' => LaravelGCV\LaravelGCVFacade::class,
],
Example
use LaravelGCV\LaravelGCVFacade;
use Illuminate\Support\Facades\Storage;
class TestController extends Controller
{
public function test(){
$result = LaravelGCVFacade::colors(Storage::disk('local')->get('clc.jpg')));
return response()->json(compact('result'));
}
}
dev-master
9999999-dev
Google Cloud Vision API Laravel package
Sources
Download
Apache-2.0
The Requires
by
Giulio Prina Ricotti