Download the PHP package zerexei/botman-drivers without Composer

On this page you can find all versions of the php package zerexei/botman-drivers. 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 botman-drivers

# Zerexei BotMan Drivers **Custom BotMan 2.x drivers for Messenger, WhatsApp Cloud API, and Viber** Latest Version on Packagist Total Downloads PHP 8.2+ MIT License BotMan 2.x PSR-4 Compliant

Overview

A collection of custom BotMan drivers that connect your PHP chatbot to multiple messaging platforms. Each driver follows the BotMan HttpDriver contract and comes with typed message template builders.

Also includes a local web playground (frosted-glass UI + PHP dev server) so you can develop and test your bot without a tunnel or real webhook.


Getting Started

1. Clone and install

2. Configure credentials

Open .env and fill in the tokens for the platforms you use:

Variable Platform Where to get it
MESSENGER_ACCESS_TOKEN Messenger Meta App → Messenger → Access Tokens
WHATSAPP_ACCESS_TOKEN WhatsApp Meta App → WhatsApp → API Setup
WHATSAPP_VERIFY_TOKEN WhatsApp A secret string you register in the Meta webhook dashboard
VIBER_ACCESS_TOKEN Viber partners.viber.com
VIBER_SENDER_NAME Viber Display name shown to users (e.g. Support Bot)
VIBER_SENDER_AVATAR Viber Public URL of your bot's avatar (optional)

3. Run the local playground

Open http://localhost:8000. The frosted-glass chat UI talks to the Web driver. No credentials or tunnel needed.


Integration

Embed in an existing PHP project

Copy the Drivers/ folder into your project root and add the PSR-4 mapping to your composer.json:

Register drivers

Call DriverManager::loadDriver() before creating the BotMan instance:

Customize a controller

Each controller exposes a registerHandlers(BotMan $bot) method for your bot logic. Extend the provided controller instead of editing it directly so you keep upstream bug fixes:

Then register your controller in server.php:


Message Templates

Typed builder classes for platform-specific message formats — no raw arrays needed.

Messenger

Button Template
Quick Replies
Generic (Carousel) Template
Image

WhatsApp

Text
Image
Interactive List (Button Template)

Viber

Text
Image
Button Keyboard
Rich Media (Carousel)

Building a New Driver

Copy Drivers/Template/ and rename the files and namespace to match your platform:

The scaffold includes three files:

File What to implement
TemplateDriver.php buildPayload, matchesRequest, getMessages, buildServicePayload, sendPayload, isConfigured
TemplateController.php Self-contained webhook entry point (intentionally does not extend BaseController)
MessageTemplates/TextTemplate.php Starting point for message builders

Supported Platforms

Platform Driver API Reference
🌐 Web (playground) botman/driver-web
💬 Messenger Drivers\Messenger\MessengerDriver Messenger Platform
📱 WhatsApp Drivers\WhatsApp\WhatsAppDriver WhatsApp Cloud API
📲 Viber Drivers\Viber\ViberDriver Viber Bot API

Contributing

Contributions are welcome. See CONTRIBUTING.md for guidelines.

Security

To report a security vulnerability, contact: 📧 Angelo Arcillas[email protected]


All versions of botman-drivers with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
botman/botman Version ^2.8
botman/driver-web Version ^1.5
illuminate/http Version ^12.35
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 zerexei/botman-drivers contains the following files

Loading the files please wait ...