Download the PHP package emmanuel-saleem/laravel-chatbot without Composer

On this page you can find all versions of the php package emmanuel-saleem/laravel-chatbot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-chatbot

Laravel Chatbot (Database-driven Q&A + BotMan)

A Laravel package that lets you manage chatbot Q&A in the database, with keyword matching (AND/OR), conditions, variable substitution, BotMan integration, an admin UI, a minimal web chat, and a floating chat widget.

Project links and contact

Requirements

1) Install the package

BotMan is included as a dependency. If you need the web driver explicitly:

2) Publish assets (config, migrations, views)

Publish everything:

Or selectively:

3) Run migrations

4) Routes

The package registers routes automatically:

If you are using a test/breeze app, protect admin routes with auth as needed.

5) Admin UI

Access Admin Pages

After installation, you can access the admin interface at:

Or use route helpers in your code:

Note: Protect these routes with authentication middleware in your application. For example, in routes/web.php:

Create Questions

  1. Navigate to Create Question (/admin/bot-questions/create)
  2. Fill in the form:
    • Question: Descriptive text for your reference
    • Keywords: Add multiple keywords (press Enter or comma to add each keyword)
    • Logic Operator: Choose OR (any keyword matches) or AND (all keywords must match)
    • Answer: The bot's response (supports variables like @{{user.name}}, @{{user.email}}, @{{session.deal_count}})
    • Buttons (optional): Add interactive buttons with labels and URLs
    • Priority: Higher numbers = higher priority (default: 0)
    • Status: Active/Inactive toggle
  3. Click Save to create the question

Import Questions

  1. Navigate to Import Questions (/admin/bot-questions/import)
  2. Choose import method:
    • Upload JSON File: Select a JSON file from your computer
    • Paste JSON Content: Paste JSON directly into the textarea
  3. Use the provided JSON structure format (see the import page for details)
  4. Click Import Questions to process

JSON Structure Example:

Question Features

Each question supports:

6) Web Chat page (included)

The package includes a simple web chat at:

This view posts to the BotMan controller and renders replies and buttons.

7) Floating chat widget (corner icon)

Include the Blade snippet anywhere (typically at the end of your base layout before </body>):

The widget opens a compact chat panel and sends messages to the same BotMan web endpoint. No Tailwind required (uses inline styles).

8) API usage

Endpoint:

Payload:

Response (example):

See API_USAGE.md for more details.

9) Theme (dark/light) in test app

If you use the provided Breeze-based test app layout, a theme toggle is included in resources/views/components/admin-layout.blade.php. The theme persists in localStorage('theme') and toggles the <html>.dark class.

10) Development tips

11) Quick copy commands

12) Troubleshooting


Happy building! If something feels rough, open an issue or send a PR.


All versions of laravel-chatbot with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
botman/botman Version ^2.6
botman/driver-web Version ^1.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package emmanuel-saleem/laravel-chatbot contains the following files

Loading the files please wait ...