PHPackages                             acrossoffwest/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. acrossoffwest/clarifai

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

acrossoffwest/clarifai
======================

clarifAI PHP Library

2.0.1(8y ago)04MITPHPPHP ^5.6|^7.0

Since Mar 10Pushed 4y agoCompare

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

READMEChangelogDependencies (1)Versions (10)Used By (0)

ORIGINAL REPOSITORY: [PHPfanatic/clarifai](https://github.com/PHPfanatic/clarifai)
==================================================================================

[](#original-repository-phpfanaticclarifai)

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

[](#clarifai-php-library)

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 acrossoffwest/clarifai

```

### Requirements

[](#requirements)

- PHP - 5.6, 7.0
- PHP - 8.0 - not tested
- 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/acrossoffwest/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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

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/ab253ee139e1853799edb0d905f970e35e48081c98f65ba4d44e06172c7ebfa2?d=identicon)[acrossoffwest](/maintainers/acrossoffwest)

---

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

phpmachine learningrecognitionclarifai

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.4M28](/packages/rubix-ml)[codewithkyrian/transformers

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

749231.8k5](/packages/codewithkyrian-transformers)[davmixcool/php-sentiment-analyzer

PHP Sentiment Analyzer is a lexicon and rule-based sentiment analysis tool that is used to understand sentiments in a sentence using VADER (Valence Aware Dictionary and sentiment Reasoner).

138151.7k1](/packages/davmixcool-php-sentiment-analyzer)[niiknow/bayes

a machine learning lib

6950.0k](/packages/niiknow-bayes)[phpfanatic/clarifai

clarifAI PHP Library

1510.7k](/packages/phpfanatic-clarifai)

PHPackages © 2026

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