commune / chatbot-laravel
基于 commune/chatbot 开发的 laravel 扩展包
dev-master
2019-07-21 10:37 UTC
Requires
- php: ^7.2
- commune/chatbot: dev-master
- laravel/framework: ~5.8
- predis/predis: ^1.1
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-09-21 22:55:30 UTC
README
开发中
https://github.com/thirdgerb/chatbot 库在laravel 中的基本实现,使其在laravel中可用。目前只实现了最简单的功能。
依赖
- swoole (可选)
- predis
- mysql
- redis
安装方法,在laravel (~5.8) 项目中
composer require commune/chatbot-laravel:dev-master
在 laravel 的 /config/app.php 的 providers 数组中添加 \Commune\Chatbot\Laravel\ChatbotServiceProvider::class
运行 artisan vendor:publish
将配置加载到laravel 目录下
运行 artisan migrate
创建chatbot 的数据表。
运行 artisan commune:tinker
可以运行命令行测试用例。
运行 artisan commune:tcp
可以基于swoole 运行机器人的 tcp 服务。