telegram-bot-sdk/addon-manager
Composer 安装命令:
composer require telegram-bot-sdk/addon-manager
包简介
Addon Manager for Telegram Bot SDK
关键字:
README 文档
README
Addon Manager to add, remove, manage and load addons into Telegram Bot SDK.
If you want to develop addons for Telegram Bot SDK, please make sure to require this package in your composer file.
Install
$ composer require telegram-bot-sdk/addon-manager
Usage
Create An Addon
<?php namespace Acme\Addons; use Telegram\Bot\Addon\Addon; use Telegram\Bot\Events\UpdateEvent; class AcmeAddon extends Addon { public function register() { $this->bot->onUpdate(function (UpdateEvent $event) { $bot = $event->bot; $update = $event->update; // Do something with the inbound update received. }); } }
Register Addon
Auto-Discovery
The Addon Manager supports auto-discovery which registers the addons automatically.
Simply create a discovery.json file in your project root.
{ "telegram/addon-config": [ "config/acme.php" ], "telegram/addon": [ "Acme\\Addons\\AcmeAddon" ] } Manually Register
use Acme\Addons\AcmeAddon; use Telegram\Bot\Addon\AddonManager; // Make sure to register before initializing bot manager. AddonManager::register(AcmeAddon::class);
Remove Addon
AddonManager::remove(AcmeAddon::class); Get Addons
$addons = AddonManager::getAddons();
Auto-Discover & Register Addons
AddonManager::discover(); Are You Using Telegram Bot SDK?
If you're using Telegram Bot SDK build your Telegram Bots or have a project that's relevant to the SDK, We'd love to know and share it with the world.
Head over to Awesome Telegram Bots to share, discover, and learn more.
Contributing
Thank you for considering contributing to the project. Please read the contributing guide before creating an issue or sending in a pull request.
Code of Conduct
Please read our Code of Conduct before contributing or engaging in discussions.
Security
If you discover a security vulnerability within this project, please email Syed at syed at lukonet.com. All security vulnerabilities will be promptly addressed. You may view our full security policy here.
Credits
License
This project is open-sourced software licensed under the BSD 3-Clause license.
telegram-bot-sdk/addon-manager 适用场景与选型建议
telegram-bot-sdk/addon-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 12.74k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「addon」 「telegram」 「chatbot」 「telegram-bot-sdk」 「telegram bot sdk」 「telegram chatbot」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 telegram-bot-sdk/addon-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 telegram-bot-sdk/addon-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 telegram-bot-sdk/addon-manager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel 5.6 Monolog custom telegram channel
PHP Wrapper for Telegram Bot API
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Dropzone field for Laravel Backpack
This ConcreteCMS/concrete5 addon installs a block type that when added to a page allows you to redirect visitors to this page to another page that you specify or an external URL.
A simple laravel wrapper for linecorp/line-bot-sdk
统计信息
- 总下载量: 12.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 16
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2026-01-04