Download the PHP package ridgeben/smart-chatbot without Composer
On this page you can find all versions of the php package ridgeben/smart-chatbot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package smart-chatbot
Ridgeben Smart Chatbot
Reusable Laravel database-aware AI chatbot using Ollama.
Ridgeben Smart Chatbot is a Laravel package that connects your website database with a local AI model through Ollama. It searches your configured database tables, prepares useful context, and sends that context to Ollama so users receive natural, helpful, and database-based answers.
Requirements
Before installing, make sure your project has:
- PHP 8.1 or higher
- Laravel 10, 11, 12, or 13
- Composer
- MySQL or any Laravel-supported database
- Ollama installed on your local machine or server
Install Ollama
Install Ollama from:
Pull the recommended model:
Start Ollama:
Check if the model is available:
Package Installation
Install the package using Composer:
For Laravel 10 projects, use:
After installing the package, run the installer command:
The installer will ask setup questions such as:
One-Line Installation
For Linux/macOS/Git Bash:
For Windows PowerShell:
For Laravel 10 on Windows PowerShell:
Example: Real Estate Website Installation
Example: eCommerce Website Installation
Example: Service Website Installation
What the Installer Does
The installer command automatically:
Manual Widget Installation
If the installer cannot detect your Blade layout automatically, add this manually before </body> in your main Blade layout:
Common layout files:
For Inertia projects, add it inside resources/views/app.blade.php before </body>:
Environment Variables
The installer will add these automatically, but you can also add them manually:
Configuration File
After installation, the main config file will be created here:
The most important section is:
This tells the chatbot which database table and columns it should search.
How It Works
The chatbot is designed to answer from your website database. It should not invent exact project names, product prices, stock, status, locations, or other factual details if they are not available in the configured database context.
Useful Commands
Clear Laravel cache:
Check if the chatbot command is available:
For Windows PowerShell or CMD:
For Linux/macOS/Git Bash:
Check routes:
The chatbot route should appear as:
Testing
After installation, run:
Visit your website and test questions such as:
Troubleshooting
Command Not Found
If this command does not work:
Run:
Then check:
Chatbot Widget Not Showing
Make sure this line exists before </body>:
Then run:
Ollama Not Responding
Make sure Ollama is running:
Check model:
Install model if needed:
Check .env:
Chatbot Cannot Find Database Information
Check your config:
Make sure:
You can test columns using Laravel Tinker:
Then:
Composer Error: Missing ext-exif
If Composer shows:
Enable exif in your PHP configuration.
On Windows, open:
Find:
Change it to:
Then restart your terminal and check:
Security Notes
Do not configure private or sensitive tables as chatbot sources.
Avoid exposing:
Only use public website information that visitors are allowed to know.
Production Notes
For production:
Update Package
To update the package:
License
MIT
All versions of smart-chatbot with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/console Version ^10.0|^11.0|^12.0|^13.0