PHPackages                             bahasaai/klasifikasi-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. bahasaai/klasifikasi-php

ActiveLibrary

bahasaai/klasifikasi-php
========================

v0.0.1(5y ago)071MITPHP

Since Dec 16Pushed 5y ago3 watchersCompare

[ Source](https://github.com/bahasa-ai/klasifikasi-php)[ Packagist](https://packagist.org/packages/bahasaai/klasifikasi-php)[ RSS](/packages/bahasaai-klasifikasi-php/feed)WikiDiscussions main Synced 2d ago

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

Klasifikasi for PHP
===================

[](#klasifikasi-for-php)

Official [Klasifikasi](https://klasifikasi.com/) API Client Library

Requirement
-----------

[](#requirement)

- PHP &gt;= 7.2.5

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

[](#installation)

Install klasifikasi-php with composert:

```
composer require bahasaai/klasifikasi-php
```

Quick Start
-----------

[](#quick-start)

You will need valid `clientId` &amp; `clientSecret` of your model. You can get those from credential section at your model page, which is both unique per model.

```
use klasifikasi\Klasifikasi;

$klasifikasiInstance = Klasifikasi::build([
    [
        'clientId' => 'client-id-1',
        'clientSecret' => 'client-id-2'
    ]
]);
```

you can pass multiple `clientId` &amp; `clientSecrert` too

```
$klasifikasiInstance = Klasifikasi::build([
    [
        'clientId' => 'client-id-1',
        'clientSecret' => 'client-secret-1'
    ],
    [
        'clientId' => 'client-id-2',
        'clientSecret' => 'client-secret-2'
    ]
]);
```

Classify
--------

[](#classify)

You will need you model `publicId` to start classifying with your model. You can get your model `publicId` from your model page, or you can get it from here :

```
foreach ($klasifikasiInstance->getModels() as $publicId => $model) {
  echo $publicId;
}
```

Classifying example

```
$result = $publicId->classify('publicId', 'query');
/**
 * $result example = array[
 *  'result' => array[
 *    [
 *      'label' => 'tag 1',
 *      'score' => 0.53
 *    ],
 *    [
 *      'label' => 'tag 2',
 *      'score' => 0.23
 *    ]
 *  ]
 * ]
*/
```

Logs
----

[](#logs)

You can get your classifying logs based on your model `publicId`

```
$startedAtString = '10 December 2020';

$endedAtString = '16 December 2020';

$logs = $instance->logs('publicId', [
    'startedAt' => new DateTime($startedAtString),
    'endedAt' => new DateTime($endedAtString),
    'take' => 10
    'skip' => 1
]);
/**
 * $logs example = array[
 *  'histories' => array[
 *    [
 *      'id' => 1,
 *      'createdAt' => '2020-12-15T11:13:12+07:00',
 *      'query' => 'query',
 *      'modelResult' => array[
 *        [
 *          'label' => 'tag 1',
 *          'score' => 0.53
 *        ],
 *        [
 *          'label' => 'tag 2',
 *          'score' => 0.23
 *        ]
 *      ]
 *    ],
 *    ...
 *  ],
 *  'length' => int
 * ]
*/
```

Error
-----

[](#error)

All the function above will throw an Exception if something bad happen. Always run each function inside `try` &amp; `catch` block

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

1973d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5dda2c348cb160ca893b0baa3d0ddc864a87d57376040f6b15d4303c2c1c2d7?d=identicon)[bahasa.ai](/maintainers/bahasa.ai)

---

Top Contributors

[![zesagata](https://avatars.githubusercontent.com/u/24735004?v=4)](https://github.com/zesagata "zesagata (20 commits)")[![restyled-commits](https://avatars.githubusercontent.com/u/65077583?v=4)](https://github.com/restyled-commits "restyled-commits (7 commits)")

### Embed Badge

![Health badge](/badges/bahasaai-klasifikasi-php/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

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

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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