Download the PHP package sakibulrasel/laravel-chatbot without Composer
On this page you can find all versions of the php package sakibulrasel/laravel-chatbot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sakibulrasel/laravel-chatbot
More information about sakibulrasel/laravel-chatbot
Files in sakibulrasel/laravel-chatbot
Package laravel-chatbot
Short Description A configurable rule-based chatbot package for Laravel applications.
License MIT
Informations about the package laravel-chatbot
Laravel Chatbot
A Laravel package that adds a configurable rule-based chatbot to a Laravel application.
It includes:
- separate chatbot admin authentication
- questionnaire CRUD
- category CRUD
- unanswered-question review
- CSV questionnaire import/export
- analytics page
- embeddable frontend widget
- public chatbot API endpoints
Requirements
- PHP 8.2+
- Laravel 11 or 12
Installation
Install the package in a Laravel app:
Run the package installer:
The install command will:
- publish the config file
- publish package migrations
- publish widget assets
- run migrations
- ask for chatbot admin credentials
- seed default settings
- optionally seed demo questions
Quick Start
After installation:
-
Open the admin login:
-
Log in with the credentials you created during
chatbot:install. -
Add or edit chatbot questions in:
- Render the widget in any Blade view:
Package Routes
Admin Routes
Default admin prefix:
Main admin pages:
/chatbot-admin/login/chatbot-admin/dashboard/chatbot-admin/analytics/chatbot-admin/categories/chatbot-admin/questionnaires/chatbot-admin/unanswered-questions/chatbot-admin/settings
Public Routes
Default public prefix:
Public endpoints:
GET /chatbot/widgetGET /chatbot/configPOST /chatbot/message
Widget Usage
Add the widget to any Blade template:
The widget uses published static assets:
If you need to republish them:
Configuration
The package config file is published to:
Important options:
- admin route prefix
- public route prefix
- fallback message
- welcome message
- widget position
- primary color
- enable/disable widget
- conversation logging
To republish config manually:
Admin Authentication
This package does not depend on the host app's users table.
It uses its own chatbot_admins table and a session-based package login flow.
That keeps the chatbot admin isolated from the main application authentication layer.
Questionnaire Management
The questionnaire section supports:
- create, edit, and delete question/answer pairs
- category assignment
- active/inactive status
- keyword matching
- sort order
- search and filtering
- CSV import/export
CSV Import/Export
Questionnaire import expects this CSV header:
Example:
Behavior:
- existing questions are updated by
question - missing categories can be created automatically
statuscan use values likeactive,inactive,true,false,1,0
Unanswered Questions
If the chatbot cannot match a question strongly enough:
- it returns the fallback message
- it logs the user prompt to
chatbot_unanswered_questions
The admin can review those prompts at:
From there, the admin can:
- convert a failed prompt into a questionnaire entry
- assign a category
- add keywords
- dismiss it
Analytics
Analytics are available at:
Current analytics include:
- total conversations in a period
- resolved failures
- pending failures
- daily conversation counts
- top matched questions
- top failed questions
Available Artisan Commands
Manual Publish Commands
If you need manual publish steps instead of chatbot:install:
Using In Another Laravel App Before Packagist
If the package is not yet published on Packagist, you can still use it through a local path repository.
In the target Laravel app's composer.json:
Then install:
Publishing To Packagist
Typical release flow:
Then submit the GitHub repository to Packagist.
After Packagist indexes the package, users can install it with:
Local Workbench
This repository includes a local Testbench workbench app for package verification.
Build it:
Serve it:
Open:
http://127.0.0.1:8000http://127.0.0.1:8000/chatbot-admin/login
Default workbench admin credentials:
Testing
Run the package tests with:
Current Scope
This package currently provides a stable first version of:
- admin auth
- widget
- questionnaires and categories
- unanswered review
- analytics
- CSV import/export
Still reasonable future additions:
- AI drivers
- richer dashboard charts
- multi-tenant support
- improved widget customization
- more extensive test coverage
All versions of laravel-chatbot with dependencies
illuminate/contracts Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/filesystem Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/routing Version ^11.0|^12.0
illuminate/session Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
illuminate/view Version ^11.0|^12.0