A simple commandline wrapper for Botman that does not require laravel components.

0.1.0 2017-10-06 22:23 UTC

This package is auto-updated.

Last update: 2020-07-29 05:48:24 UTC


README

Overview

This is a simple wrapper around botman to be able to create a simple cli-driver text interface to your botman. Ideal for quick testing of your botman.

This is similar to tinker, but is much simpler, and does not require quite as many dependancies, but does require PHP with readline extension compiled. This is quite common becuase of the PHP interactive shell, but you may need to install an additional readline package (php7.0-readline, for example).

How to use

Simple include in your project (use composer require scottaubrey/robin) and write a CLI entry point, like below:

#!/usr/bin/env php
<?php
use Robin\Robin;

//get your configure botman, for example from a service locator
require_once(__DIR__."/bootstrap.php");
$botman = $services->get("Botman\Botman\Botman");

$robin = new Robin($botman);
$robin->run();

Then simply chmod +x and run!

License

Robin is licensed under the MIT license