Library to request Colormind REST Api.
This library writing in PHP make request easier to make API request to ColorMind API.
Use Composer to install this package as a requirement like this :
composer require defro/colormind
$client = new \GuzzleHttp\Client();
$api = new \Defro\Google\ColorMind\Api($client);
$palette = $api->getRandomPalette();
$imgUrl = $api->getColorSuggestions([[44, 43, 44], [90, 83, 82], 'N', 'N', 'N']);
$imgUrl = $api->getModels();
You can run example script and unit tests in included Docker container, read how to do it.