fabriceclementz / imagga-php
A simple wrapper for Imagga API.
Installs: 3 042
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 2
Requires
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- mockery/mockery: ^0.9.8
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2025-04-12 23:03:37 UTC
README
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