PHP code example of laravelgeekphp / laravel-rekognition
1. Go to this page and download the library: Download laravelgeekphp/laravel-rekognition 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/ */
laravelgeekphp / laravel-rekognition example snippets
return [
'key' => env('REKOGNITION_KEY'),
'secret' => env('REKOGNITION_SECRET'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
];
use \LaravelGeek\LaravelRekognition\Facades\Rekognition;
use Illuminate\Support\Facades\Storage;
$imageLabels = Rekognition::getFromFilePath(Storage::path($mediaPath));
// do something with your labels
bash
php artisan vendor:publish --tag="rekognition-config"