biblioonline/nutgram
最新稳定版本:3.5.1
Composer 安装命令:
composer require biblioonline/nutgram
包简介
The Telegram bot library that doesn't drive you nuts
README 文档
README
Nutgram
The Telegram bot framework that doesn't drive you nuts
This framework takes advantage of the latest PHP 8 features, and tries to make the speed, scalability and flexibility of use its strength, it will allow you to quickly make simple bots, but at the same time, it provides more advanced features to handle even the most complicated flows. Some architectural concepts on which Nutgram is based are heavily influenced by other open source projects such as Botman and Zanzara, check them out too!
<?php use SergiX44\Nutgram\Nutgram; $bot = new Nutgram($_ENV['TOKEN']); $bot->onCommand('start', function(Nutgram $bot) { $bot->sendMessage('Ciao!'); }); $bot->onText('My name is {name}', function(Nutgram $bot, string $name) { $bot->sendMessage("Hi $name"); }) $bot->run();
Installation
You can install the package via composer:
composer require nutgram/nutgram
Usage
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-12