Skip to content

valdirlourenco/laravel-azure-face-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartDog23 - Laravel Azure Face API

License Latest Stable Version Total Downloads

Laravel Azure Face API is a PHP Client that make easy to use Azure's Face Recognition API

(this is a Laravel Facade based on PHP Azure Face API library)

$result = LaravelAzureFaceApi::largePersonGroup()->create()->execute('test-group', 'description of the group');

echo $result->getBody()->getContents();

Help and docs

Sample Laravel Project

Installation

The recommended way to install LaravelAzureFaceAPI is through Composer.

composer require smartdog23/laravel-azure-face-api

Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="SmartDog23\LaravelAzureFaceApi\Providers\LaravelAzureFaceApiServiceProvider"

Usage

Using the simple mode

$result = LaravelAzureFaceApi::largePersonGroup()->create()->execute('test-group', 'description of the group');
echo $result->getBody()->getContents();

Using the advanced mode

$options = new CreateOptions();
$options->parameters()->largePersonGroupId('test-group');
$options->body()->name('description of the group');
$result = LaravelAzureFaceApi::largePersonGroup()->create()->executeWithOptions($options);
echo $result->getBody()->getContents();

About

Laravel Azure Face Api

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages