Download the PHP package dantepiazza/laravel-chatwoot without Composer

On this page you can find all versions of the php package dantepiazza/laravel-chatwoot. 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 laravel-chatwoot

dantepiazza/laravel-chatwoot

Laravel integration for Chatwoot — webhook routing, a step-based bot workflow engine and Chatwoot API helpers.


Requirements


Installation

Publish the config file:

Publish the example workflow:


Environment variables

Add these to your .env:


How it works

1. Webhook route

The package registers the following route automatically:

The {flow} segment is resolved to a class:

You can have multiple workflows for different inboxes.

2. Creating a workflow

A workflow is a class that extends ChatwootProvider and lives in app/Services/Chatwoot/.

The published stub (BotWorkflow.php) is a ready-to-run example. Here is the minimal structure:

3. Steps

Every step is a method named step_{name} where dots in the step name become underscores:

Step name Method
welcome.start step_welcome_start()
docs.start step_docs_start()
affiliate.menu step_affiliate_menu()

4. Navigating between steps

5. Sending messages

6. Actions

A step can have a sub-state called an action, encoded as step.name[action].

This is useful to handle confirmation flows or multi-stage interactions within the same logical step.

7. Built-in helpers (via HasCommonFlows trait)

attach(string $message, string $cancelStep)

Manages a multi-message file-upload flow. Returns true once the user confirms they have finished sending files.

open(array $tags, int $team, string $message, string $nextStep)

Adds tags, assigns a team, opens the conversation and notifies the user.

goodbye(string $message, array $buttons)

Sends a closing message and asks if the user needs anything else.

8. Other API methods

Method Description
$this->status('open') Toggle conversation status
$this->tag(['label']) Add labels to the conversation
$this->team(1) Assign to a team
$this->attribute('key', val) Set a custom attribute
$this->wait(2) Sleep N seconds (useful between messages)

Development mode

Set $this->development = true in your workflow constructor to allow the bot to respond even when a conversation is open. Useful when testing in Chatwoot directly. Remove before deploying to production.


Contributing

  1. Fork the repository from the master branch.
  2. Create a branch for your feature or fix.
  3. Follow PSR-12 coding standards.
  4. Submit a pull request describing your changes.

License

MIT


All versions of laravel-chatwoot with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^10.0|^11.0|^12.0
dantepiazza/laravel-api-response Version ^1.0.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 dantepiazza/laravel-chatwoot contains the following files

Loading the files please wait ...