thelhc / lhc-slack-bot
Laravel SlackBot 辅助工具
v1.3.2
2020-01-20 15:57 UTC
Requires
- php: ~5.6|~7.0|~7.1|~7.2|~7.3
- guzzlehttp/guzzle: ^6.2
- illuminate/database: 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*
- illuminate/support: 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*
- thelhc/ip-info: ^1.2
Requires (Dev)
- orchestra/testbench: ~3.0
- phpunit/phpunit: ^5.4 || ~6.0
- vlucas/phpdotenv: ^2.4
This package is not auto-updated.
Last update: 2024-09-24 15:07:02 UTC
README
安装
通过 Composer
$ composer require thelhc/lhc-slack-bot
安装后,将 ServiceProvider 添加到 config/app.php
中的 providers 数组。
TheLHC\SlackBot\SlackBotServiceProvider::class
并将 Facade 添加到 aliases 数组
'SlackBot' => TheLHC\SlackBot\Facades\SlackBot::class,
配置
首先使用以下命令发布供应商配置文件:
$ php artisan vendor:publish
然后修改你的配置文件 config/slack_bot.php
使用方法
use SlackBot; SlackBot::chat('hello world');
测试
$ composer test
许可证
MIT 许可证 (MIT)。请参阅 许可证文件 以获取更多信息。