Download the PHP package patel/chatbot-bundle without Composer

On this page you can find all versions of the php package patel/chatbot-bundle. 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 chatbot-bundle


Chatbot Bundle

A Symfony bundle that provides a menu-based chatbot widget with category management and FAQ functionality. The chatbot appears as a floating button on the right side of your website and allows users to browse categories and get answers to frequently asked questions.


Features


Installation

Step 1: Add Configuration

Create the file config/packages/chatbot.yaml: Create the file config/packages/chatbot.yaml and set the user_question_entity parameter to the fully qualified namespace of your user question entity class.

Step 2: Install the Bundle

Install the chatbot bundle using Composer:

Step 3: Register the Bundle

Add the bundle to your config/bundles.php file:

Step 4: User-Submitted Questions

Users can submit their own questions through the chatbot. Admins can respond and choose to publish them in the FAQ. Users receive email notifications when their question is answered.

Implement ChatbotUserInterface

In your user entity (e.g., Admin):

Create a UserQuestion Entity

Create a UserQuestionRepository Repository

`

Configure Email Notifications

Set the FROM_EMAIL in your .env:

Step 5: Install Assets

This will publish necessary asset files to the public/bundles/ directory.

Step 6: Create and Run Migrations

Generate and execute the database migrations:

Step 7: Include the Chatbot Widget and isUserLoggedIn

Include the widget in your base template (templates/base.html.twig):

Add in script tag:

Step 8: Add Routes

Add the following to config/routes.yaml:

Step 9: Add in your services.yaml


Usage

Category Management

Visit /chatbot/category to:

FAQ Management

Visit /chatbot/faq to:

User Interaction


Customizing Templates

Step 1: Locate Original Templates

Step 2: Create Override Directories

Step 3: Copy Templates

Step 4: Clear Cache


Available Routes

Path Name Purpose
/chatbot chatbot Chatbot homepage
/chatbot/user-questions chatbot_user_questions_index Manage user-submitted questions
/chatbot/category chatbot_category_index Manage categories
/chatbot/faq chatbot_faq_index Manage FAQs
/chatbot/widget chatbot_widget Display chatbot widget
/chatbot/faqs/{categoryid} chatbot_faqs_by_category Get FAQs by category (AJAX/API)

Flow Diagram

1. πŸ“‚ Category Management (Admin Panel)

2. ❓ FAQ Management (Admin Panel)

3. User Queries Management (Admin Panel)

4. πŸ€– Chatbot Interface


Customization

Styling

Override default styles using your own CSS targeting the chatbot’s class names.

Templates

As explained above, copy templates from the bundle and place them in:


Requirements


Troubleshooting

Assets Not Loading

Database Errors

Twig Template Errors


Contributing

We welcome contributions! Feel free to open issues or submit pull requests for new features or bug fixes.


License

This bundle is open-source and licensed under the MIT License.


Support

If you need help or have questions, feel free to open an issue on GitHub or contact the development team.


Happy chatting! πŸ€–


All versions of chatbot-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
symfony/framework-bundle Version ^6.0 || ^7.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 patel/chatbot-bundle contains the following files

Loading the files please wait ...