PHPackages                             fabriceclementz/clarifai-php - 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. [API Development](/categories/api)
4. /
5. fabriceclementz/clarifai-php

ActiveLibrary[API Development](/categories/api)

fabriceclementz/clarifai-php
============================

A PHP client for the Clarifai API.

v0.1.0(9y ago)22.7k2[1 PRs](https://github.com/fabriceclementz/clarifai-php/pulls)MITPHPPHP &gt;=7.0

Since Feb 19Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Clarifai API Client
===================

[](#clarifai-api-client)

[![Latest Stable Version](https://camo.githubusercontent.com/3e1ebdc513b844194ad0c1d32f7dcc98e4d21f0b6efc2d1b7970950ae60e079e/68747470733a2f2f706f7365722e707567782e6f72672f66616272696365636c656d656e747a2f636c6172696661692d7068702f762f737461626c65)](https://packagist.org/packages/fabriceclementz/clarifai-php)[![Total Downloads](https://camo.githubusercontent.com/5ab843e014a0741c12458be959e303fd559fdb3f4ac2f80ccd34cde774c811fc/68747470733a2f2f706f7365722e707567782e6f72672f66616272696365636c656d656e747a2f636c6172696661692d7068702f646f776e6c6f616473)](https://packagist.org/packages/fabriceclementz/clarifai-php)[![License](https://camo.githubusercontent.com/0f8fd85d5c4613f3edba9e752d0c8f554933d516e61b0f73623bda91d307b32c/68747470733a2f2f706f7365722e707567782e6f72672f66616272696365636c656d656e747a2f636c6172696661692d7068702f6c6963656e7365)](https://packagist.org/packages/fabriceclementz/clarifai-php)[![Build Status](https://camo.githubusercontent.com/cc1e20e25eda5bd2d574ee25a4a8fab9368a33eac7e450f11076eb4bd93e0392/68747470733a2f2f7472617669732d63692e6f72672f66616272696365636c656d656e747a2f636c6172696661692d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fabriceclementz/clarifai-php)[![Build Status](https://camo.githubusercontent.com/cc1e20e25eda5bd2d574ee25a4a8fab9368a33eac7e450f11076eb4bd93e0392/68747470733a2f2f7472617669732d63692e6f72672f66616272696365636c656d656e747a2f636c6172696661692d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fabriceclementz/clarifai-php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/722d154433c0dbb5f2ebb65bbfca28680f163ce2e4baff6609f950dd455e63e5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66616272696365636c656d656e747a2f636c6172696661692d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fabriceclementz/clarifai-php/?branch=master)

A PHP client for the [Clarifai API](https://developer.clarifai.com).

Work in progress.

Installation
------------

[](#installation)

### Via composer

[](#via-composer)

```
composer require fabriceclementz/clarifai-php

```

Usage
-----

[](#usage)

### Fetch an access token

[](#fetch-an-access-token)

```
use GuzzleHttp\Client as HttpClient;
use Fab\Clarifai\Client;

// Instantiate a new client.
$client = new Client(new HttpClient(), 'CLIENT_ID', 'CLIENT_SECRET');

// Fetch an access token.
$response = $client->accessToken();

```

### Predict the content of an image

[](#predict-the-content-of-an-image)

```
$response = $client
    ->withAccessToken($response['access_token'])
    ->predict(['https://samples.clarifai.com/metro-north.jpg']);

```

Testing
-------

[](#testing)

```
composer test

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3417d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1771483?v=4)[Fabrice Clementz](/maintainers/fabriceclementz)[@fabriceclementz](https://github.com/fabriceclementz)

---

Top Contributors

[![fabriceclementz](https://avatars.githubusercontent.com/u/1771483?v=4)](https://github.com/fabriceclementz "fabriceclementz (3 commits)")

---

Tags

clarifaiclarifai-apiclientphpphp7

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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