Download the PHP package elgibor-solution/laravel-botpress without Composer
On this page you can find all versions of the php package elgibor-solution/laravel-botpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elgibor-solution/laravel-botpress
More information about elgibor-solution/laravel-botpress
Files in elgibor-solution/laravel-botpress
Package laravel-botpress
Short Description A Laravel bridge for Botpress Community Edition API.
License MIT
Informations about the package laravel-botpress
Laravel Botpress Bridge
A production-ready Laravel package that acts as a transparent bridge to the Botpress v12 Community Edition API.
Features
- Bridge all Botpress API endpoints with a configurable prefix.
- Mirror same API path, payload, and response as Botpress.
- Handle configuration from
.envor Database. - Production ready with comprehensive tests.
Installation
Configuration
Publish the config file:
Environment Variables
The package supports both Botpress Cloud and Botpress Community Edition (CE) with different authentication methods.
For Botpress Cloud
For Botpress CE (No Authentication)
Ideal for development or internal networks:
For Botpress CE (JWT Authentication)
When your CE instance requires JWT tokens:
For Botpress CE (Basic Authentication)
When your CE instance uses basic auth:
Authentication Types
bearer- For Botpress Cloud (uses PAT/BAK/IAK tokens)jwt- For Botpress CE with JWT authenticationbasic- For Botpress CE with HTTP Basic authenticationnone- For Botpress CE without authentication (development/internal)
Database Configuration
If you want to manage configuration via database, run the migrations:
Then set BOTPRESS_USE_DATABASE_CONFIG=true in your .env. The package will look for configuration keys in the botpress_configs table:
Available keys:
server_url- Botpress server URLapi_token- API token (for bearer auth)auth_type- Authentication type (bearer, jwt, basic, none)auth_secret- JWT secret key (for JWT auth)jwt_expiry- JWT expiration in seconds (for JWT auth)auth_username- Username (for basic auth)auth_password- Password (for basic auth)
Usage
Simply make requests to your Laravel application using the configured prefix.
For example, if your prefix is botpress, a request to:
POST https://your-laravel-app.com/botpress/api/v1/bots/my-bot/converse/my-user
Will be bridged to:
POST http://your-botpress-server:3000/api/v1/bots/my-bot/converse/my-user
Headers (except for excluded ones like host) and payloads are forwarded exactly as received.
Testing
License
MIT
All versions of laravel-botpress with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0