Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Nicola Malizia:
Make your Telegram bot with Laravel and BotMan
Sep 13, 2017 @ 09:41:54

Nicola Malizia has written up a post showing you how to create a Telegram bot using Laravel and the BotMan package. BotMan is a project that seeks to make it easier to work with chat commands directly in an application with some handy tools included.

After a long time I’m here to talk about Telegram bots. Lately, I discovered a nice PHP library for building Telegram Bots and I want now to show you it’s potential? - ?BotMan.

BotMan is a framework agnostic PHP library that is designed to simplify the task of developing innovative bots for multiple messaging platforms, including Slack, Telegram, Microsoft Bot Framework, Nexmo, HipChat, Facebook Messenger, WeChat and many more.

The best part of this library is that you can integrate with Laravel, thus taking benefit of the vast ecosystem around it.

He then walks you through the installation of the BotMan package and creation of a simple "Hello world" kind of bot. He then shows how to install the driver for the Telegram. He then shows how to connect the bot to Telegram, execute it and expose it to the world via ngrok and how to test it out. He finishes the post with a more real world situation: creating a bot that allows users to subscribe and receive broadcasts when an announcement is made.

tagged: botman chatbot tutorial laravel telegram subscribe

Link: https://unnikked.ga/make-your-telegram-bot-with-laravel-and-botman-b8199e58461d

Christoph Rumpel:
Build a Facebook Messenger chatbot in Laravel with BotMan Studio 2.0
Sep 08, 2017 @ 09:26:01

Christoph Rumpel has written up a tutorial on his site showing you how to use Larave and the Botman package to create a simple chatbot for use on Facebook.

With BotMan it is really easy to setup a Facebook chatbot. This week the new 2.0 version was released. We will checkout how to setup a Facebook Messenger chatbot in this new version with BotMan Studio.

He starts with a list of requirements to be sure you have installed before proceeding. He then helps you get the Botman software installed and the command to bootstrap a Facebook bot instance. He includes instructions on how to test the bot and how to configure it to work with a Facebook application (requiring relevant token/secret information). From there he shows you how to set up the Facebook application and connect the bot to it via a webhook. The ngrok tool makes this easier as it exposes your local Laravel application on an external URL for testing. Finally, he shows how to test the integration by sending a few sample messages to the bot and getting responses.

tagged: facebook messenger chatbot laravel botman studio tutorial

Link: http://christoph-rumpel.com/2017/09/build-a-facebook-chatbot-with-laravel-and-botman-studio/

Laravel News:
BotMan 2.0 PHP Chatbot Framework
Sep 01, 2017 @ 09:20:20

On the Laravel News site today there's a new post covering the release of BotMan v2.0, one of the more popular chatbot libraries for PHP.

BotMan is a framework agnostic PHP Chatbot framework designed to simplify the task of developing innovative bots for multiple messaging platforms, including Slack, Telegram, Microsoft Bot Framework, Nexmo, HipChat, Facebook Messenger, WeChat and many more.

BotMan 2.0 was released earlier this week with a bunch of improvements and exciting changes.

As a part of this new release, functionality was abstracted out into separate repositories making it easier to maintain those features without having to change core code. They then include an example of using the the library to create a simple chatbot that replies to a simple "hello" message. They also cover some of the more advanced features including middleware handling and natural language processing support. There's also a tool, BotMan Studio, that's included with the package to help make testing your chatbot script easier. The post wraps up with an example of using this to test the chatbot and a list of some of the other new features in v2.0.

tagged: botman chatbot framework release v2 overview example

Link: https://laravel-news.com/botman-php-chatbot

Christoph Rumpel:
Build a Telegram group bot in PHP
Mar 06, 2017 @ 13:48:41

Christoph Rumpel has a tutorial posted on his site showing how to create a Telegram group bot using a bit of PHP and the BotMan library.

Working with Facebook Messengers bots is great, but there is one thing still missing: group bots! This is why we will built a little Telegram bot today and use it inside my FantasticBurger group.

First thing to keep in mind here is that a group chatbot can be very different from a 1:1 conversation chatbot. In groups chatbots are often not a direct conversation partner but more a quiet assistant.

He briefly talks about why he created the bot and how to go and set up your own Telegraph bot with a simple first command. He then walks through the set up of the BotMan library and connecting it back to the Telegraph service (via an API call) and a simple handler that returns a "Hi there" message when the bot hears the string "Hello".

tagged: tutorial telegraph bot botman group facebook

Link: http://christoph-rumpel.com/2017/03/Build-A-Telegram-Group-Bot/