Download the PHP package assistly/laravel-channel without Composer

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

assistly/laravel-channel

Route a Laravel application's own conversations through Assistly. Your app keeps the transport and the message history; Assistly supplies the answer.

The package knows nothing about any host. It lives in the Assistly monorepo beside the contract it speaks (docs/specs/assistly-channel-v1.md), so the client and the endpoint it calls change in the same commit.

It is equally deliberate that it does not live inside the first application that used it. A package grown inside one app ends up shaped like that app, and the coupling is only discovered when a second one tries to adopt it. SecondHostTest drives the whole flow against a host that is not WhatsApp and does not exist outside that file; if a fourth thing ever becomes required of a host, that test stops compiling.

Install

Set the channel this application speaks — it is stored against every conversation and there is no safe default:

What you implement

Three interfaces. Nothing else.

TenantResolver — which account, and how much may it do

ReplyTransport — how an answer reaches the customer

ConversationSource — what was said before

Bind them:

Sending a message

Both are queued. A slow or unreachable Assistly must never slow down your own message pipeline — a failed job here is a missing reply, not a missing message.

The base URL

AssistlyCredentials::$baseUrl is whatever the host handed over, and in every host that matters it came from a tenant — someone who signed up. The package therefore refuses to follow redirects: a checked hostname that forwards to an unchecked one is the same request against the host's internal network, signed and already authenticated. A 302 surfaces as AssistlyRequestFailed instead.

What the package cannot do is vet the address itself; it does not know which hosts a given installation considers legitimate. A host must validate the URL before storing it — require https, reject credentials in the authority, reject addresses that resolve into private, loopback or link-local ranges, or pin the hostname outright. Validating only on save is not enough on its own: a name that resolved publicly then can resolve privately later.

Callbacks

The service provider registers POST {assistly.webhook.path}/{tenant} for replies typed by a human operator, handoffs, and classifications. Every request is signature-verified against that tenant's webhook secret; the tenant is a path segment because the body is what is being authenticated and cannot be trusted to choose its own key.

Listen for what you care about:

AssistlyUnavailable fires when waiting will not help — a lapsed subscription, a missing AI credential, an address the key does not permit. Never relay it to a customer. A billing state is not an answer, and a host that forwards one sends it once per incoming message with nothing telling it to stop.

Queues

Two, both finite and named in config: assistly for live traffic and assistly-backfill for priming. Finite because a supervisor cannot watch a queue whose name it did not know at boot — a dynamically named queue is a job that waits forever with nothing wrong in any log.

Development

Published to Packagist from a read-only split of this directory. Develop against the monorepo path; install from the split.


All versions of laravel-channel with dependencies

PHP Build Version
Package Version
Requires illuminate/bus Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
php Version ^8.2
psr/http-message Version ^1.1|^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 assistly/laravel-channel contains the following files

Loading the files please wait ...