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.

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 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:


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

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
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
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 ridgeben/smart-chatbot contains the following files

Loading the files please wait ...