Clarifai API Library, PHP/Composer implementation of the clarifai api. (clarifai). PHPfanatic's PHP library brings you the power of clarifai's image recognition API wrapped in an easy to use PHP library that you can add to your own project easily with composer.
Build smarter apps faster with Clarifai’s powerful visual recognition technology.
Add the package to your composer implementation.
composer require phpfanatic/clarifai
or
Add the package manually by downloading the most recent stable version release from Github and include the src/ directory within your own project.
- PHP - 5.6, 7.0 - May work with ealier version, untested at this time.
- cURL - *
- Clarifai API Key - clarifai
- PHPUnit - to run tests (optional).
use PhpFanatic\clarifAI\ImageClient;
$client = new ImageClient([CLIENT_ID], [CLIENT_SECRET]);
$client->AddImage('http://phpfanatic.com/projects/clarifai/cat.png');
$result = $client->Predict();
PHPfanatic - ClarifAI documentation
- 1.2.1 - Fixed urlencode bug (credit: keithslater), added additional Clarifai models.
- 1.2.0 - Added model delete support, updated inputs to allow delete all.
- 1.1.0 - Added multi language support.
- 1.0.0 - Public API release.
- 0.1.1 - Development alpha release.
- Removing cURL as a requirement.
- Combining POST,DELETE,PATCH into a single method.
- Composer - Dependency management
- PHPUnit - Testing framework
- Packagist - Package repository
- Travis CI - Automated building
- Nick White - Initial work - PHPfanatic
This project is licensed under the MIT License.