https://github.com/fabriceclementz/imagga-php
A simple wrapper for the Imagga API.
https://github.com/fabriceclementz/imagga-php
images imagga-api php
Last synced: 6 months ago
JSON representation
A simple wrapper for the Imagga API.
- Host: GitHub
- URL: https://github.com/fabriceclementz/imagga-php
- Owner: fabriceclementz
- License: mit
- Created: 2017-02-14T19:37:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-21T08:32:12.000Z (about 5 years ago)
- Last Synced: 2024-12-02T20:50:19.984Z (7 months ago)
- Topics: images, imagga-api, php
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Imagga API Client
[](https://packagist.org/packages/fabriceclementz/imagga-php)
[](https://packagist.org/packages/fabriceclementz/imagga-php)
[](https://packagist.org/packages/fabriceclementz/imagga-php)
[](https://travis-ci.org/fabriceclementz/imagga-php)A simple wrapper for the [Imagga API](https://docs.imagga.com).
## 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
```