PHPackages                             kkohoutek/cleverbot-laravel - 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. kkohoutek/cleverbot-laravel

ActiveLibrary[API Development](/categories/api)

kkohoutek/cleverbot-laravel
===========================

Laravel wrapper for the Cleverbot.com API

v1.0.0(4y ago)06MITPHPPHP &gt;=7.4.0

Since Apr 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kkohoutek/cleverbot-laravel)[ Packagist](https://packagist.org/packages/kkohoutek/cleverbot-laravel)[ Docs](https://github.com/kkohoutek/cleverbot-laravel)[ RSS](/packages/kkohoutek-cleverbot-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

cleverbot-laravel
=================

[](#cleverbot-laravel)

Laravel wrapper for the Cleverbot API.

Install
=======

[](#install)

```
composer require kkohoutek/cleverbot-laravel
php artisan vendor:publish --force

```

Select KKohoutek\\Cleverbot\\CleverbotServiceProvider from the list. Then in your .env file, add a line with your Cleverbot API key:

```
CLEVERBOT_API_KEY="your-api-key"

```

Usage
=====

[](#usage)

Use dependency injection to get access to the Cleverbot singleton. Use the ´query´ method to communicate with the API.

```
Route::get('/', function (Kkohoutek\Cleverbot\Cleverbot $cb) {

    $response = $cb->query('Hello Cleverbot!');
    logger($response->output);

     // Keep passing ´cs´ to continue the same conversation
    $response = $cb->query('How are you doing?', $response->cs);
    logger($response->output);

    // ... Return  ...
});
```

// Hello Cleverbot!
\[2022-04-23 18:20:15\] local.DEBUG: No. That's not my name.
// How is it going?
\[2022-04-23 18:20:16\] local.DEBUG: Not telling you.

The valid parsed JSON response looks something like this (for more info, visit ):

```
{
  "cs":"76nxdxIJO2...AAA",
  "interaction_count":"1",
  "input":"",
  "output":"Good afternoon.",
  "conversation_id":"AYAR1E3ITW",
  ...
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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

1480d ago

### Community

Maintainers

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

---

Top Contributors

[![kohoutekk](https://avatars.githubusercontent.com/u/28947470?v=4)](https://github.com/kohoutekk "kohoutekk (26 commits)")

---

Tags

apicleverbotlaravelphpwrapperapilaravelcleverbot

### Embed Badge

![Health badge](/badges/kkohoutek-cleverbot-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/kkohoutek-cleverbot-laravel/health.svg)](https://phpackages.com/packages/kkohoutek-cleverbot-laravel)
```

###  Alternatives

[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[d-scribe/laraquick

A collection of classes to be extended/used in laravel applications for quick development

371.8k1](/packages/d-scribe-laraquick)

PHPackages © 2026

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