项目作者: s360digital

项目描述 :
Laravel explicit console driver for BotMan
高级语言: PHP
项目地址: git://github.com/s360digital/console-driver.git
创建时间: 2017-02-21T08:53:31Z
项目社区:https://github.com/s360digital/console-driver

开源协议:MIT License

下载


console-driver Total Downloads

Laravel explicit console driver for BotMan

WIP

Installation

Install with composer

  1. composer require sempro/console-driver

Navigate to config/app.php and add the following under providers

  1. \Sempro\ConsoleDriver\Providers\ServiceProvider::class

Publish assets (Console chat command)

  1. php artisan vendor:publish --force --provider="Sempro\ConsoleDriver\Providers\ConsoleDriverServiceProvider"

Register command in app/Console/Kernel.php

  1. protected $commands = [
  2. App\Console\Commands\ConsoleChat::class
  3. ];

Usage

Send a message to the bot

  1. php artisan console:chat "Your message here"

Send a message and log a message

  1. php artisan console:chat "Your message here" --log

License

MIT © Sempro AS