Download the PHP package fanfanfw/landbot-secure without Composer

On this page you can find all versions of the php package fanfanfw/landbot-secure. 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 landbot-secure

fanfanfw/landbot-secure

fanfanfw/landbot-secure is a Laravel package that hardens Landbot widget embedding by hiding the original configUrl behind a session-bound proxy flow.

It does not modify the bot logic inside Landbot. It only changes how the browser obtains the config needed to bootstrap the widget.

What It Solves

Landbot's default embed snippet exposes a public configUrl in browser source. If someone copies that URL, they can attempt to reuse the same bot elsewhere.

This package reduces that risk by:

Security Boundary

This package is a hardening layer, not DRM.

Requirements

Installation

Add your Landbot config URL to .env:

Render the widget:

Validate the setup:

Configuration

You may publish the config file:

Available environment variables:

Key Required Default Description
LANDBOT_CONFIG_URL Yes Original Landbot config URL
LANDBOT_ENABLED No true Enable or disable the widget
LANDBOT_ROUTE_PREFIX No __landbot Internal route prefix
LANDBOT_TOKEN_TTL No 2 Token lifetime in minutes
LANDBOT_RATE_LIMIT No 10 /token requests per minute per IP
LANDBOT_LOGGING No true Enable package logging
LANDBOT_LOG_CHANNEL No null Optional Laravel log channel

Usage

Basic usage in any Blade view:

Optional facade usage:

Publishable Assets

Publish config:

Publish views:

How It Works

  1. The browser lazily requests GET /__landbot/token.
  2. Laravel stores a hashed one-time token in the session and returns the raw token.
  3. The browser initializes Landbot.Livechat with a same-origin local config URL such as /__landbot/config?token=....
  4. The Landbot SDK fetches that local config endpoint with the browser session attached.
  5. Laravel validates the session-bound token, fetches the upstream Landbot config, and returns proxied JSON while keeping the original upstream configUrl hidden.

Testing

License

MIT


All versions of landbot-secure with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/console 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/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/view 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 fanfanfw/landbot-secure contains the following files

Loading the files please wait ...