PHPackages                             bagart/telegram-bot-management-lib - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bagart/telegram-bot-management-lib

ActiveLibrary

bagart/telegram-bot-management-lib
==================================

Telegram Bot management library

00

Since May 17Compare

[ Source](https://github.com/bagart/telegram-bot-management-lib)[ Packagist](https://packagist.org/packages/bagart/telegram-bot-management-lib)[ RSS](/packages/bagart-telegram-bot-management-lib/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

BAGArt/TelegramBotManagement
============================

[](#bagarttelegrambotmanagement)

Bot manager: storing tokens in the database, migrations, commands for managing bots.

---

Code Coverage
-------------

[](#code-coverage)

> Generated: 2026-03-18 | 0 dedicated tests | ⚠️ needs tests

### Coverage by Folder

[](#coverage-by-folder)

FolderFileCoverageBar**Models**TgBot`0.0%``░░░░░░░░░░░░░░░░░░░░`TgBotModule`0.0%``░░░░░░░░░░░░░░░░░░░░`TgBotOwner`0.0%``░░░░░░░░░░░░░░░░░░░░`**Commands**TgBotManagerInit`0.0%``░░░░░░░░░░░░░░░░░░░░`TgBotManagerMigrate`0.0%``░░░░░░░░░░░░░░░░░░░░`TgBMPollerCommand`0.0%``░░░░░░░░░░░░░░░░░░░░`TgBMMonitorCommand`0.0%``░░░░░░░░░░░░░░░░░░░░`**Migrations**3 migration files—schema onlyTelegramBotManager`0.0%``░░░░░░░░░░░░░░░░░░░░`### Overall

[](#overall)

```
████████████████████  0.0%

```

> No tests written yet for this library. Priority targets:
>
> - `TelegramBotManager::addBot()` — static method, testable with DB
> - `TgBot` model — fillable, hidden, primary key
> - `TgBotManagerInit` — extract token validation, test UUID generation

### Files

[](#files)

```
misc/BAGArt/TelegramBotManagement/
├── Models/
│   ├── TgBot.php (30 lines) — token storage model
│   ├── TgBotModule.php — module config
│   └── TgBotOwner.php — owner mapping
├── Commands/
│   ├── TgBotManagerInit.php (64 lines) — init bot with token
│   ├── TgBotManagerMigrate.php — run migrations
│   ├── TgBMPollerCommand.php (96 lines) — polling from DB token
│   └── TgBMMonitorCommand.php — monitoring
├── Migrations/
│   ├── 2026_02_25_022457_create_tg_bots_table.php
│   ├── 2026_02_25_025209_create_tg_bot_modules_table.php
│   └── 2026_02_25_025215_create_tg_bot_owners_table.php
└── TelegramBotManager.php (19 lines) — static addBot()

```

### Run Tests

[](#run-tests)

```
# No tests yet — create with:
php artisan make:test --pest TelegramBotManager/TgBotTest
php artisan make:test --pest TelegramBotManager/TelegramBotManagerTest
```

###  Health Score

9

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/02a582356aa07935e42e622817f56810dce45be995af444215fabb072a39992b?d=identicon)[bagart](/maintainers/bagart)

### Embed Badge

![Health badge](/badges/bagart-telegram-bot-management-lib/health.svg)

```
[![Health](https://phpackages.com/badges/bagart-telegram-bot-management-lib/health.svg)](https://phpackages.com/packages/bagart-telegram-bot-management-lib)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
