PHPackages                             shakibonline/moon-telegram - 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. shakibonline/moon-telegram

ActiveLibrary

shakibonline/moon-telegram
==========================

Telegram helper

0.1.0(8y ago)539[1 issues](https://github.com/shakibonline/MoonTelegram/issues)MITPHPPHP &gt;=5.4.0

Since Jun 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/shakibonline/MoonTelegram)[ Packagist](https://packagist.org/packages/shakibonline/moon-telegram)[ RSS](/packages/shakibonline-moon-telegram/feed)WikiDiscussions master Synced today

READMEChangelog (7)DependenciesVersions (11)Used By (0)

MoonTelegram
============

[](#moontelegram)

[![Total Downloads](https://camo.githubusercontent.com/8ef918e6caefd9a9689b8f685718c29e8d8aed21466139535cec4ee91fef1989/68747470733a2f2f706f7365722e707567782e6f72672f7368616b69626f6e6c696e652f6d6f6f6e2d74656c656772616d2f646f776e6c6f616473)](https://packagist.org/packages/shakibonline/moon-telegram)[![License](https://camo.githubusercontent.com/6d2057608752739c20c24dd0085f9aaa97e72e6f1f699303aa6bc196422e643c/68747470733a2f2f706f7365722e707567782e6f72672f7368616b69626f6e6c696e652f6d6f6f6e2d74656c656772616d2f6c6963656e7365)](https://packagist.org/packages/shakibonline/moon-telegram)[![StyleCI](https://camo.githubusercontent.com/19b8f485b712bd640bf04a06e73d8e4c8d37df6302d5e794dcce59fc5aecb7f1/68747470733a2f2f7374796c6563692e696f2f7265706f732f39333835333530332f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/93853503)

> It's a way to use the telegram's response as Object instead of Array

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

[](#installation)

From your project directory, run

```
composer require shakibonline/moon-telegram

```

Examples
--------

[](#examples)

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

/**
 * @var array $update
 */
$message = new \Shakibonline\Message($update);

echo $message->Text() . PHP_EOL;
echo $message->Chat()->ID() . PHP_EOL;
echo $message->Chat()->Type() . PHP_EOL;
```

Check The type

```
/**
 * @var array $update
 */
$type = MoonTelegram::Type($update);

if ( $type === MoonTelegram::MESSAGE ) {
	$message = new Message($update);
	$chat = $message->Chat();
} elseif ( $type === MoonTelegram::CALLBACK_QUERY ) {
	$callback = new CallbackQuery($update);
	$chat = $callback->Message()->Chat();
}
```

See [`Examples`](https://github.com/shakibonline/MoonTelegram/tree/master/Examples) folder

Contact me
----------

[](#contact-me)

You can contact me [via Telegram](https://telegram.me/abbasShakiba) (EN and FA) but if you have an issue please [open](https://github.com/shakibonline/MoonTelegram/issues) one.

Pull Request
============

[](#pull-request)

---

Your welcome to any pull requests.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

7

Last Release

3209d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82803ca3428032359908222d5d36e99b2309be0a0e608ad2cce611d8bc6004d9?d=identicon)[shakibonline](/maintainers/shakibonline)

---

Top Contributors

[![abbas980301](https://avatars.githubusercontent.com/u/17107543?v=4)](https://github.com/abbas980301 "abbas980301 (43 commits)")

---

Tags

helperphptelegramtelegram-bottelegram-bot-helper

### Embed Badge

![Health badge](/badges/shakibonline-moon-telegram/health.svg)

```
[![Health](https://phpackages.com/badges/shakibonline-moon-telegram/health.svg)](https://phpackages.com/packages/shakibonline-moon-telegram)
```

PHPackages © 2026

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