PHP code example of darmen / php-azure-face-api-client

1. Go to this page and download the library: Download darmen/php-azure-face-api-client 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/ */

    

darmen / php-azure-face-api-client example snippets




use Darmen\AzureFace\Client;

$client = new Client('<endpoint>', '<subscription key>');

$client->faceList()->create('test-id', 'test-name');
$client->largeFaceList()->create('test-id-large', 'test-name-large');

$client->faceList()->get('test-id');
$client->largeFaceList()->get('test-id-large');

$client->faceList()->delete('test-id');
$client->largeFaceList()->delete('test-id-large');

// ...