fabriceclementz/clarifai-php
Composer 安装命令:
composer require fabriceclementz/clarifai-php
包简介
A PHP client for the Clarifai API.
README 文档
README
A PHP client for the Clarifai API.
Work in progress.
Installation
Via composer
composer require fabriceclementz/clarifai-php
Usage
Fetch an access token
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();
Predict the content of an image
$response = $client
->withAccessToken($response['access_token'])
->predict(['https://samples.clarifai.com/metro-north.jpg']);
Testing
composer test
统计信息
- 总下载量: 2.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-19