PHPackages                             tigo/chatterbot - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tigo/chatterbot

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tigo/chatterbot
===============

structure of a simple chatterbot

v0.0.2(4y ago)2451MITPHPPHP &gt;=7.3

Since Nov 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tigoCaval/chatterbot)[ Packagist](https://packagist.org/packages/tigo/chatterbot)[ Fund](https://www.paypal.com/donate?hosted_button_id=9BQYV7FVREN92)[ Fund](https://www.paypal.com/donate?hosted_button_id=ZQRM3T5WG7JL4)[ RSS](/packages/tigo-chatterbot/feed)WikiDiscussions main Synced 6d ago

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

Chatterbot
==========

[](#chatterbot)

Example of a simple chatterbot for educational purposes.

- Download package: `composer require tigo/chatterbot`
- MIT license: [License](https://github.com/tigoCaval/chatterbot/blob/main/LICENSE)
- ***Feel free to use this project***. ***Leave a star ⭐ if you liked!***

*If you found this project useful, consider making a donation to support the developer.*

[![paypal](https://camo.githubusercontent.com/bbd11cbf153bfc86cad262d7f7f7c77bc265322f5345d07dea2218ef446bfb20/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f70745f42522f692f62746e2f62746e5f646f6e6174655f534d2e676966)](https://www.paypal.com/donate?hosted_button_id=ZQRM3T5WG7JL4)| [![paypal](https://camo.githubusercontent.com/7b6de155df30b37b25eb5fec52f9213680c3dbf067dfb7d7e2850ac4096c7d05/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e6174655f534d2e676966)](https://www.paypal.com/donate?hosted_button_id=9BQYV7FVREN92)

Introduction
------------

[](#introduction)

This project is based on question and answers. Example: a array with the following information

"Hi"=&gt; \["Hi","Hello"\]

Question = "Hi" | random answer = \["Hi","Hello"\]

**Using Database**

[![](https://github.com/tigoCaval/images/raw/main/web/table_chatterbot.png)](https://github.com/tigoCaval/chatterbot)

### Getting started

[](#getting-started)

Starting with composer

1. Install composer
2. Download package: `composer require tigo/chatterbot`
3. PHP &gt;= 7.3;
4. Update command: `composer update`

```
//Somewhere in your project, you may need to use autoload
include __DIR__ ."/vendor/autoload.php";
```

**Example**

```
 use Tigo\ChatterBot\Bot\BotUniversal; // import class
 use Tigo\ChatterBot\Response; //import class

$response  = new Response(new BotUniversal);

//using local array data | return string
print $response->check("Good Afternoon"); // random result = ["Good Afternoon","Hi","Hello"]

//fetching information from a database | return string
print $response->checkDataBase("Good Afternoon"); // random result = ["Good Afternoon","Hi","Hello"]
```

### Configuration

[](#configuration)

- To configure the database connection using this modeling example [click here](https://github.com/tigoCaval/crud/blob/main/doc/doc-en.md) (project tigoCaval/crud).
- It is necessary to create the data tables according to this database modeling.

Contributors
------------

[](#contributors)

- [Tiago A C Pereira](https://github.com/tigoCaval)
- [List of contributors](https://github.com/tigoCaval/chatterbot/graphs/contributors)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Every ~3 days

Total

2

Last Release

1649d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f4b80fc9ba8d77c8b32d353d540dbd116ca6402f693e132aa7b1c21c15db39f?d=identicon)[tigopereira](/maintainers/tigopereira)

---

Top Contributors

[![tigoCaval](https://avatars.githubusercontent.com/u/19934116?v=4)](https://github.com/tigoCaval "tigoCaval (18 commits)")

---

Tags

botchatbotchatterbotchatbotchatterbot

### Embed Badge

![Health badge](/badges/tigo-chatterbot/health.svg)

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

###  Alternatives

[botman/botman

Create messaging bots in PHP with ease.

6.2k1.5M97](/packages/botman-botman)[nlgen/nlgen

A library for creating recursive-descent natural language generators.

56181.3k](/packages/nlgen-nlgen)

PHPackages © 2026

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