A PHP client for the Clarifai API.
Work in progress.
composer require fabriceclementz/clarifai-php
use GuzzleHttp\Client as HttpClient;
use Fab\Clarifai\Client;
// Instantiate a new client.
$client = new Client(new HttpClient(), 'CLIENT_ID', 'CLIENT_SECRET');
// Fetch an access token.
$response = $client->accessToken();
$response = $client
->withAccessToken($response['access_token'])
->predict(['https://samples.clarifai.com/metro-north.jpg']);
composer test