PHPackages                             phpfanatic/clarifai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. phpfanatic/clarifai

ActiveLibrary[Image &amp; Media](/categories/media)

phpfanatic/clarifai
===================

clarifAI PHP Library

2.0.1(8y ago)1510.7k4MITPHPPHP ^5.6|^7.0

Since Mar 10Pushed 7y ago4 watchersCompare

[ Source](https://github.com/PHPfanatic/clarifai)[ Packagist](https://packagist.org/packages/phpfanatic/clarifai)[ Docs](https://github.com/PHPfanatic/clarifai)[ RSS](/packages/phpfanatic-clarifai/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

Clarifai PHP Library
====================

[](#clarifai-php-library)

[![Build Status](https://camo.githubusercontent.com/d71e9e3cac10abab131dd5fabf98bbf157d63e4fef4dea1fc653ce1cf6da15b3/68747470733a2f2f7472617669732d63692e6f72672f50485066616e617469632f636c6172696661692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/PHPfanatic/clarifai)[![GitHub version](https://camo.githubusercontent.com/5383e92eb485d07793ecb2fd3e9013e30e85499281dcf1abe7f0206abd872a61/68747470733a2f2f62616467652e667572792e696f2f67682f70687066616e61746963253246636c6172696661692e706e67)](https://badge.fury.io/gh/phpfanatic%2Fclarifai)

Clarifai API Library, PHP/Composer implementation of the clarifai api. ([clarifai](https://clarifai.com/)). PHPfanatic's PHP library brings you the power of clarifai's image recognition API wrapped in an easy to use PHP library that you can add to your own project easily with composer.

Build smarter apps faster with Clarifai’s powerful visual recognition technology.

Getting Started
---------------

[](#getting-started)

Add the package to your composer implementation.

```
composer require phpfanatic/clarifai

```

or

Add the package manually by downloading the most recent stable version release from Github and include the src/ directory within your own project.

- [zip](https://github.com/PHPfanatic/clarifai/archive/2.0.1.zip)
- [tar](https://github.com/PHPfanatic/clarifai/archive/2.0.1.gz)

### Requirements

[](#requirements)

- PHP - 5.6, 7.0 - May work with ealier version, untested at this time.
- cURL - \*
- Clarifai API Key - [clarifai](https://developer.clarifai.com/pricing/)
- PHPUnit - to run tests (optional).

### Example Usage

[](#example-usage)

```
use PhpFanatic\clarifAI\ImageClient;

$client = new ImageClient([API_KEY]);

$client->AddImage('http://phpfanatic.com/projects/clarifai/dog.jpg');
$result = $client->Predict();

```

Documentation
-------------

[](#documentation)

[PHPfanatic - ClarifAI documentation](https://github.com/PHPfanatic/clarifai/wiki/)

Change History
--------------

[](#change-history)

- 2.0.1 - Patched clientversion variable.
- 2.0.0 - Changed Clarifai authentication to use API Key method.
- 1.2.3 - Added User-Agent Library header to outbound curl calls per Clarifai request.
- 1.2.2 - Fixed malformed url bug when you paginate a get request. (credit: @mhdere)
- 1.2.1 - Fixed urlencode bug (credit: keithslater), added additional Clarifai models.
- 1.2.0 - Added model delete support, updated inputs to allow delete all.
- 1.1.0 - Added multi language support.
- 1.0.0 - Public API release.
- 0.1.1 - Development alpha release.

Look Ahead (what might be changed in the future.)
-------------------------------------------------

[](#look-ahead-what-might-be-changed-in-the-future)

- Removing cURL as a requirement.
- Combining POST,DELETE,PATCH into a single method.

Built With
----------

[](#built-with)

- [Composer](https://getcomposer.org/) - Dependency management
- [PHPUnit](https://phpunit.de/) - Testing framework
- [Packagist](https://packagist.org/) - Package repository
- [Travis CI](https://travis-ci.org/) - Automated building

Authors
-------

[](#authors)

- **Nick White** - *Initial work* - [PHPfanatic](https://github.com/PHPfanatic)

License
-------

[](#license)

This project is licensed under the MIT License.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Recently: every ~46 days

Total

9

Last Release

3148d ago

Major Versions

0.1.1-alpha → 1.0.02017-03-13

1.2.3 → 2.0.02017-11-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10915706?v=4)[Nick White](/maintainers/PHPfanatic)[@PHPfanatic](https://github.com/PHPfanatic)

---

Top Contributors

[![PHPfanatic](https://avatars.githubusercontent.com/u/10915706?v=4)](https://github.com/PHPfanatic "PHPfanatic (47 commits)")[![andreybolonin](https://avatars.githubusercontent.com/u/2576509?v=4)](https://github.com/andreybolonin "andreybolonin (1 commits)")

---

Tags

clarifaiclarifai-phpimage-recognitionphpphp-libraryphpmachine learningrecognitionclarifai

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phpfanatic-clarifai/health.svg)

```
[![Health](https://phpackages.com/badges/phpfanatic-clarifai/health.svg)](https://phpackages.com/packages/phpfanatic-clarifai)
```

###  Alternatives

[sybio/gif-creator

PHP class that creates animated GIF from multiple images

326404.6k14](/packages/sybio-gif-creator)[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

177561.2k15](/packages/dereuromark-media-embed)[jkphl/iconizr

A PHP command line tool for converting SVG images to a set of CSS icons (SVG &amp; PNG, single icons and / or CSS sprites) with support for image optimization and Sass output

4869.0k](/packages/jkphl-iconizr)[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14849.5k3](/packages/tomatophp-filament-media-manager)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.7k](/packages/nikkanetiya-laravel-color-palette)[kiwilan/php-audio

PHP package to parse and update audio files metadata, with `JamesHeinrich/getID3`.

3114.1k1](/packages/kiwilan-php-audio)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
