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 1mo 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 27% 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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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