Download the PHP package asyntai/flarum-chatbot without Composer

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

Asyntai AI Chatbot for Flarum

Puts an AI assistant on your forum. A chat button sits in the corner, visitors ask a question in their own words, and the assistant answers from your own content in more than 80 languages.

Useful on a support or product forum, where the same questions come round every week and nobody is awake at 2am to answer them.

Works on Flarum 1 and Flarum 2. Tested on 1.8.18 and on 2.0 rc5. Free, MIT licensed. You need an Asyntai account for the widget ID; there is a free plan.

Install

Then enable it in Administration → Extensions, open its settings, and paste your widget ID. You find the ID at asyntai.com under Setup & Integration.

Settings

Asyntai widget ID. The chat is on while this holds a valid ID, off when it is empty. You can paste the whole snippet from the dashboard; the extension keeps only the ID and throws the rest away.

Show only to guests. Off by default. Turn it on and members who are logged in never see the chat, which is handy if the assistant is there to answer newcomers rather than regulars.

Script address. Leave empty unless you host the widget yourself.

How it works

The extension adds one small script to the forum frontend. That script waits for the page load event, then fetches the widget from asyntai.com. Flarum draws first, so page speed is unchanged, and the widget loads once per tab.

Your server never talks to Asyntai. Only the visitor's browser does. The extension publishes exactly three values to the page: the widget ID, the script address and the guest-only switch. Nothing about your users or your posts.

Notes

The JavaScript ships as plain, readable files rather than a webpack build, so there is nothing to compile and you can read exactly what runs on your forum.

Flarum wraps each extension file with var module = {} and reads module.exports afterwards, so both files end with an export. Without it the whole forum fails to boot, not just this extension.

The chat is loaded on the page load event rather than from a Flarum initializer. Initializers run at the start of boot, before Flarum fills its store, so app.forum does not exist yet at that point.

Support

[email protected]


All versions of flarum-chatbot with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^1.0 || ^2.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 asyntai/flarum-chatbot contains the following files

Loading the files please wait ...