PHPackages                             koko/koko-ai - 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. koko/koko-ai

AbandonedLibrary

koko/koko-ai
============

A PHP client for the Koko API

1.0.3(8y ago)0110.8k4MITPHP

Since Jul 18Pushed 8y ago3 watchersCompare

[ Source](https://github.com/itskoko/koko-ai-php)[ Packagist](https://packagist.org/packages/koko/koko-ai)[ RSS](/packages/koko-koko-ai/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

koko-ai-php
===========

[](#koko-ai-php)

koko-ai-php is a PHP client for

Install
-------

[](#install)

```
composer require koko/koko-ai

```

Usage
-----

[](#usage)

Create an instance of the client:

```
include 'vendor/autoload.php';

use Koko\Tracker;

$koko = new Tracker(['auth' => 'YOUR_AUTH_KEY']);
```

Track content, see more [here](https://docs.koko.ai/#track-endpoints). These methods also take Guzzle request options as an optional second argument, so that you may override `proxy` and other settings.

```
$classification = $koko->trackContent([
  'id' => '123',
  'user_id' => '123',
  'type' => 'post',
  'content_type' => 'text',
  'content' => ['text' => 'Some content']
]);

$koko->trackFlag([
  'id' => '123',
  'flagger_id' => '123',
  'reasons' => ['crisis'],
  'targets' => [['content_id' => '123']]
]);

$koko->trackModeration([
  'id' => '123',
  'moderator_id' => '123',
  'action' => 'user_warned',
  'target' => ['content_id' => '123']
]);
```

Testing
-------

[](#testing)

Run the following command:

```
php test.php

```

License
-------

[](#license)

```
WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|

```

(The MIT License)

Copyright (c) 2017 Koko Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

35

↑

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% 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 ~21 days

Recently: every ~31 days

Total

7

Last Release

3091d ago

Major Versions

0.0.3 → 1.0.02017-07-18

### Community

Maintainers

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

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

![](https://www.gravatar.com/avatar/6d4491bfffd529554861447d067b34af3662b98f23073ac0dfdd184209a93c3a?d=identicon)[jed](/maintainers/jed)

---

Top Contributors

[![jed](https://avatars.githubusercontent.com/u/4433?v=4)](https://github.com/jed "jed (35 commits)")[![hollyt](https://avatars.githubusercontent.com/u/6618184?v=4)](https://github.com/hollyt "hollyt (1 commits)")

### Embed Badge

![Health badge](/badges/koko-koko-ai/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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