This library does not impose a specific dependency for sending HTTP requests. Instead we use HTTPlug abstraction library to allows to continue using your existing HTTP implementation or use your favoured one.
We also are utilising PSR-7 in this library so you will need to install a psr-7
compatible library such as guzzlehttp/psr7
.
We can do this with a one line composer require:
$ composer require php-http/curl-client guzzlehttp/psr7 php-http/message adam-paterson/watson-visual-recognition
use IBM\Watson\VisualRecognition as VisualRecognition;
$visualRecognition = VisualRecognition::create('apiKey');
$classifiers = $visualRecognition->classify('http://www.fillmurray.com/200/500.jpg');
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email :author_email instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.