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. phpfanatic/clarifai

ActiveLibrary

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 1mo 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 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

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

3103d ago

Major Versions

0.1.1-alpha → 1.0.02017-03-13

1.2.3 → 2.0.02017-11-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f97837f96657c6e0f4bf6fbb330ef2879d94d3efc7dd6e2b08f75c0b89fc3ba?d=identicon)[PHPfanatic](/maintainers/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

[codewithkyrian/transformers

State-of-the-art Machine Learning for PHP. Run Transformers in PHP

749231.8k5](/packages/codewithkyrian-transformers)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[monkeylearn/monkeylearn-php

Official PHP client for the MonkeyLearn API.

51125.8k](/packages/monkeylearn-monkeylearn-php)[niiknow/bayes

a machine learning lib

6950.0k](/packages/niiknow-bayes)[softcreatr/php-mistral-ai-sdk

A powerful and easy-to-use PHP SDK for the Mistral AI API, allowing seamless integration of advanced AI-powered features into your PHP projects.

1517.9k](/packages/softcreatr-php-mistral-ai-sdk)[softcreatr/php-perplexity-ai-sdk

A powerful and easy-to-use PHP SDK for the pplx (Perplexity) API, allowing seamless integration of advanced AI-powered features into your PHP projects..

149.1k](/packages/softcreatr-php-perplexity-ai-sdk)

PHPackages © 2026

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