Skip to content

giulioprinaricotti/laravel-gcv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

laravel-gcv

Laravel Google Cloud Vision API package

Install

Install via Composer

composer require giulioprinaricotti/laravel-gcv

Add the following lines to your config/app.php

'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'));
    }
}

About

Laravel Google Cloud Vision API package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages