fabriceclementz / imagga-php

A simple wrapper for the Imagga API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imagga API Client

Latest Stable Version Total Downloads License Build Status

A simple wrapper for the Imagga API.

Installation

Via composer

composer require fabriceclementz/imagga-php

Usage

Extract tags from an image

use GuzzleHttp\Client as HttpClient;
use Fab\Imagga\Client;

$client = new Client(new HttpClient(), 'IMAGGA_API_KEY', 'IMAGGA_API_SECRET');

$response = $client->tags('https://imagga.com/static/images/tagging/wind-farm-538576_640.jpg');

Extract colors from an image

use GuzzleHttp\Client as HttpClient;
use Fab\Imagga\Client;

$client = new Client(new HttpClient(), 'IMAGGA_API_KEY', 'IMAGGA_API_SECRET');

$response = $client->colors('https://imagga.com/static/images/tagging/wind-farm-538576_640.jpg');

Testing

composer test

About

A simple wrapper for the Imagga API.

License:MIT License


Languages

Language:PHP 100.0%