PHPackages                             ympons/phpkairos - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ympons/phpkairos

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

ympons/phpkairos
================

PhpKairos is a nice client for the Kairos Face Recognition API

4691PHP

Since Nov 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ympons/PhpKairos)[ Packagist](https://packagist.org/packages/ympons/phpkairos)[ RSS](/packages/ympons-phpkairos/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PhpKairos
=========

[](#phpkairos)

PhpKairos is a nice client for the [Kairos Face Recognition API](https://www.kairos.com)

> **status: Stable**Please [report any bugs](https://github.com/ympons/PhpKairos/issues) you find so that we can improve the library for everyone.

#### Requires

[](#requires)

- PHP Version &gt;= 5.5

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

[](#installation)

Main public repository of PhpKairos is hosted at .

To install most recent version of library, just type

```
git clone https://github.com/ympons/PhpKairos.git

```

where you want its file to be located.

If you have not already installed globally, you have to download composer. Just run this command inside your PhpKairos directory.

```
php -r "readfile('https://getcomposer.org/installer');" | php
```

Now get the required libraries to work with PhpKairos:

```
php composer.phar --no-dev install
```

###### Note:

[](#note)

> If you already have a composer installed or your existing project use it, you can install/add PhpKairos via Composer , it is linked to this GitHub repository ( so it is everytime updated ), and add it as dependecy to your project.

```
php composer.phar require "ympons/phpkairos:dev-master" --update-no-dev

```

Usage
-----

[](#usage)

PhpKairos specify autoload information, Composer generates a vendor/autoload.php file. You can simply include this file and you will get autoloading for free and declare the use of PhpKairos Client with fully qualified name.

```
require "vendor/autoload.php";
use PhpKairos\PhpKairos;
```

### Client initialization

[](#client-initialization)

```
$api     = 'http://api.kairos.com/';
$app_id  = 'your_app_id';
$app_key = 'your_app_key';
$client = new PhpKairos( $api, $app_id, $app_key );
```

### Enroll an image

[](#enroll-an-image)

The image parameter must be a publicly accessible URL or Base64 encoded photo

```
$image        = 'http://media.kairos.com/kairos-elizabeth.jpg';
$subject_id   = 'subject1';
$gallery_name = 'gallerytest1';
$options      = [
  'selector' => 'SETPOSE',
  'symmetricFill' => true
];

$response = $client->enroll($image, $subject_id, $gallery_name, $options);
$result   = $response->getBody()->getContents();
```

### Recognize an image

[](#recognize-an-image)

The image parameter must be a publicly accessible URL or Base64 encoded photo

```
$image        = 'http://media.kairos.com/kairos-elizabeth.jpg';
$gallery_name = 'gallerytest1';

$response = $client->recognize($image, $gallery_name);
$result   = $response->getBody()->getContents();
```

### Detect image attributes

[](#detect-image-attributes)

The image parameter must be a publicly accessible URL or Base64 encoded photo

```
$encodedImage = 'iVBORw0KGgoAAA ... ABJRU5ErkJggg==\r\n';

$response = $client->detect($encodedImage);
$result   = $response->getBody()->getContents();
```

### List galleries

[](#list-galleries)

Lists out all the galleries you have created

```
$response = $client->listGalleries();
$result   = $response->getBody()->getContents();
```

### View a gallery

[](#view-a-gallery)

Lists out all the subjects you have enrolled in a gallery

```
$gallery_name = 'gallerytest1';

$response = $client->viewGallery($gallery_name);
$result   = $response->getBody()->getContents();
```

### Remove a gallery

[](#remove-a-gallery)

```
$gallery_name = 'gallerytest1';

$response = $client->removeGallery($gallery_name);
$result   = $response->getBody()->getContents();
```

### Remove a subject

[](#remove-a-subject)

Removes a subject you have enrolled within a gallery

```
$subject_id   = 'subject1';
$gallery_name = 'gallerytest1';

$response = $client->removeSubject($subject_id, $gallery_name);
$result   = $response->getBody()->getContents();
```

License
=======

[](#license)

MIT License, see [LICENSE.md](./LICENSE).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b152240b0770dc868a159f49b9b5693c531f1e0ece946819f5fbc3ba742a482a?d=identicon)[ympons](/maintainers/ympons)

---

Top Contributors

[![ympons](https://avatars.githubusercontent.com/u/3603893?v=4)](https://github.com/ympons "ympons (20 commits)")

---

Tags

face-recognitionhttpclientkairosincphp

### Embed Badge

![Health badge](/badges/ympons-phpkairos/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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