Home - PHPfanatic/clarifai GitHub Wiki
Welcome to the PHPfanatic Clarifai library. This documentation will cover the composer installation of this library and how to use the library. I am not rewriting Clarifai's documentation, they have a wonderful online guide to their API which I highly recommend that you read. This library simply implements their API via PHP in a simplistic fashion.
Library Installation
The phpfanatic/clarifai library is hosted with Packagist and can be added to your project with composer.
composer require phpfanatic/clarifai
Requirements
PHP
The library has been tested with PHP 5.6, 7.0 and stable releases will continue to be tested using these versions. It is possible that the library will work with PHP 5.3>, however at this time it is untested and considered use at your own risk outside of the stable tested versions.
cURL
cURL is utilized to make the API calls between the library and the clarifai API. OAUTH2 bearer tokens are used for authorization and are automatically generated and regenerated as needed. As a side note I am looking into making cURL optional and utilizing PSR-7 HTTP message interfaces as a default for messaging, however this has not been solidified yet.
PHPUnit - Optional
PHPUnit is an optional installation that is recommended if you are planning on extending the library. I totally support extending and/or recommending changes to this library.