PHPackages                             rde/php-telegram-connection - 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. [API Development](/categories/api)
4. /
5. rde/php-telegram-connection

ActiveLibrary[API Development](/categories/api)

rde/php-telegram-connection
===========================

Telegram API connection

v0.4.2(10y ago)020MITPHPPHP &gt;=5.3

Since Jul 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/colindev/php-telegram-connection)[ Packagist](https://packagist.org/packages/rde/php-telegram-connection)[ RSS](/packages/rde-php-telegram-connection/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (13)Used By (0)

rde/php-telegram-connection
===========================

[](#rdephp-telegram-connection)

簡化 telegram api 請求

---

### 用法

[](#用法)

建立連線

```
use Rde\Telegram\Connection;

// 成功建立連線後, $conn->me 會存放此 bot 的 id 資料
$conn = new Connection($token);
```

- `$token` 取得方式請參考 [Telegram Bot Token](https://core.telegram.org/bots/api#authorizing-your-bot)
- `$conn->me` 結構請參考 [Telegram Bot API getMe](https://core.telegram.org/bots/api#getme)

發送訊息

```
use Rde\Telegram\Structure;

$payload = new Structure(array(
    'chat_id' => $int
));

$payload->{'text'} = 'some text string';

$telegram_response = $conn->sendMessage($payload);
```

使用 post

```
$conn->method('POST');
//$conn->sendMessage($payload);
```

### cli tool

[](#cli-tool)

bot api 轉發

```
$ ./bot   [payload]
```

使用 post

```
$ METHOD=POST ./bot   [payload]
```

發送訊息

```
$ ./send   'your text'
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~30 days

Recently: every ~73 days

Total

12

Last Release

3683d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22b0425a5b48108d5aa970a9f115f73358b8257a578c0974677cc2587549196b?d=identicon)[colindev](/maintainers/colindev)

---

Top Contributors

[![colindev](https://avatars.githubusercontent.com/u/1317798?v=4)](https://github.com/colindev "colindev (24 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rde-php-telegram-connection/health.svg)

```
[![Health](https://phpackages.com/badges/rde-php-telegram-connection/health.svg)](https://phpackages.com/packages/rde-php-telegram-connection)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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