PHPackages                             matmper/php-telegram-sdk-bot - 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. matmper/php-telegram-sdk-bot

ActiveLibrary

matmper/php-telegram-sdk-bot
============================

The PHP Telegram SDK (BOT) is a easy-to-use package designed to simplify the integration of Telegram bots into PHP applications

1.0.0(1y ago)3126Apache-2.0PHPPHP ^8.0CI passing

Since Feb 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/matmper/php-telegram-sdk-bot)[ Packagist](https://packagist.org/packages/matmper/php-telegram-sdk-bot)[ RSS](/packages/matmper-php-telegram-sdk-bot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

Telegram PHP - SDK Bot
======================

[](#telegram-php---sdk-bot)

Requirements
------------

[](#requirements)

```
- PHP `^8.0`
- cURL Extension

```

Installation
------------

[](#installation)

Install the package via Composer:

```
$ composer require matmper/php-telegram-sdk-bot
```

Usage
-----

[](#usage)

This package allows you to easily interact with Telegram's Bot API. You can send messages, receive updates, and handle bot interactions with a few lines of code.

Create Telegram BOT: [From BotFather to Hello World](https://core.telegram.org/bots/tutorial)

### Sending a Message

[](#sending-a-message)

Telegram Doc: [sendMessage](https://core.telegram.org/bots/api#sendmessage)

```
require 'vendor/autoload.php';

use Matmper\TelegramBot;
use Matmper\Enum\ParseMode;

$botToken = '12345678:a1b2c3d4f5g6';
$chatID = '-100000000';

$telegram = new TelegramBot($botToken, $chatID);
$telegram->sendMessage('Hello world!');

// Send more optional options in the body of the request
$telegram->sendMessage('Hello world!', ['parse_mode' => ParseMode::HTML->value]);
```

Contribution &amp; Development
------------------------------

[](#contribution--development)

Contributions are welcome! This project is open-source and free for distribution.

### Development Setup

[](#development-setup)

Clone the repository and install dependencies:

```
$ composer install --dev --prefer-dist
```

Ensure all tests and coding standards are met before submitting a pull request:

```
$ composer check
```

All contributions must be submitted via pull requests and must pass tests and coding standards before being merged.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance43

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

448d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ebbba804257345da231efbb8a00e9eb80383359990fd9e860c3c6ed7e42eb46?d=identicon)[matmper](/maintainers/matmper)

---

Top Contributors

[![matmper](https://avatars.githubusercontent.com/u/8351960?v=4)](https://github.com/matmper "matmper (5 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/matmper-php-telegram-sdk-bot/health.svg)

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

PHPackages © 2026

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