Introduction

Chatman is a machine-learning based chatbot library build in PHP. It can generate responses by learning the conversations. Chatman is very easy to use. It can be used for generating auto responses for social media, customer support, ecommerce website, personal fun etc.

Example code :


        
    require_once __DIR__ . '/vendor/autoload.php';

    use Chatman\BotWithPatterns;

    $bot = new BotWithPatterns("chatbot.json");
    $bot->defaultMsg = "I did not understand !";
    $bot->train();

    $resp = $bot->getResponse("hello");

    echo $resp['resp'];

      

Chatman uses these libraries :
1 - PHP ML
2 - Lemmatizer

Documentation Template :
Colorlib