PHPackages                             vlotysh/bot-gram-php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. vlotysh/bot-gram-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

vlotysh/bot-gram-php
====================

PHP client for telegram

0.0.3(2y ago)166MITPHPPHP ^8.0

Since Nov 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vlotysh/bot-gram-php)[ Packagist](https://packagist.org/packages/vlotysh/bot-gram-php)[ RSS](/packages/vlotysh-bot-gram-php/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (3)Versions (4)Used By (0)

bot-gram-php
============

[](#bot-gram-php)

PHP library for Telegram API

```
$updateData = file_get_contents("php://input");
$handler = new Handler();
# with bot key
$bot = new Bot('000000:AAAAAAAAAAAAAAAAAAAAAA');

# add command handler
$handler->addCallback('/^\/like/', function () use ($bot, $chatId) {
    $replyMarkup = array(
        'inline_keyboard' => [
            [
                [
                    'text' => "Yes",
                    'callback_data' => 'yes',
                ],
                [
                    'text' => "No",
                    'callback_data' => 'no',
                ],
            ]

        ],
    );

    $bot->sendMessage($chatId, 'Like bot?', $replyMarkup);
});

$handler->execute($updateData);
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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 ~0 days

Total

3

Last Release

959d ago

PHP version history (2 changes)0.0.1PHP ^7.4 || ^8.0

0.0.3PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/635fdfd4d458c9076d2932ce5728cea053853315260015511c1c69b5e9c88cfc?d=identicon)[vlotysh](/maintainers/vlotysh)

---

Top Contributors

[![vlotysh](https://avatars.githubusercontent.com/u/5550544?v=4)](https://github.com/vlotysh "vlotysh (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vlotysh-bot-gram-php/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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