https://github.com/thirdgerb/chatbot-laravel
developing , commune/chatbot laravel package
https://github.com/thirdgerb/chatbot-laravel
Last synced: 28 days ago
JSON representation
developing , commune/chatbot laravel package
- Host: GitHub
- URL: https://github.com/thirdgerb/chatbot-laravel
- Owner: thirdgerb
- License: mit
- Created: 2019-02-18T12:21:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-21T10:38:02.000Z (over 6 years ago)
- Last Synced: 2024-04-02T22:46:13.901Z (almost 2 years ago)
- Language: PHP
- Size: 47.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
developing
[https://github.com/thirdgerb/chatbot](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 服务.