botman/driver-hangouts
A BotMan driver for Google Hangouts that connects your chatbot to Hangouts conversations. Add Hangouts support to Laravel/PHP bots so users can interact with your bot directly through Google Hangouts.
Treat this package as a thin BotMan 2.x driver, not a maintained Google Chat SDK. Last release was 2018 and the repo is unknown, so verify compatibility before adopting.
Minimal steps:
composer require botman/botman botman/driver-hangouts
vendor/botman/driver-hangouts/src/HangoutsChatDriver.phpcomposer.json for namespace/autoload and PHP constraintsuse BotMan\BotMan\Drivers\DriverManager;
use BotMan\Drivers\HangoutsChat\HangoutsChatDriver;
DriverManager::loadDriver(HangoutsChatDriver::class);
Verify the exact namespace from the vendor source; do not assume it..env and avoid committing service-account JSON.ping, reply pong:
$bot->hears('ping', function ($bot) {
$bot->reply('pong');
});
Where to look first: the driver source and its request/response methods. This package is old enough that the source is the documentation.
hears, receives, ask, reply, conversations, and middleware.Route::post('/botman/hangouts', [BotManController::class, 'handle']);
$bot->getMessage()->getPayload() to inspect them.thread.name and include it on outgoing replies. Otherwise replies may appear as new threads.DriverManager::loadDriver(...) ran before handling the request and that the class name is correct.php artisan config:clear.How can I help you explore Laravel packages today?