PHP code example of azulae / laravel-azure-face-api

1. Go to this page and download the library: Download azulae/laravel-azure-face-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

azulae / laravel-azure-face-api example snippets



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

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


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

$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();
shell
php artisan vendor:publish --provider="SmartDog23\LaravelAzureFaceApi\Providers\LaravelAzureFaceApiServiceProvider"